Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core.txt: add default value to core.autocrlf document #588

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/config/core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ core.autocrlf::
working directory and the repository has LF line endings.
This variable can be set to 'input',
in which case no output conversion is performed.
The default value is false.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not correct, in general. On Windows, it is true.

Copy link
Author

@hikaen2 hikaen2 Mar 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not correct, in general. On Windows, it is true.

I tried on windows, without autocrlf.
default looks like false:
Screenshot
(test repo: https://github.com/hikaen2/crlf)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you install Git for Windows and leave all the default values, core.autocrlf is true. Most users will keep the defaults.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understood.
Installer sets autocrlf=true.
So if I remove the autocrlf settings, what is the value of autocrlf?
I want to know the default value.


core.checkRoundtripEncoding::
A comma and/or whitespace separated list of encodings that Git
Expand Down