Merge branch 'tb/doc-eol-normalization'
authorJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2017 05:07:44 +0000 (22:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2017 05:07:45 +0000 (22:07 -0700)
Doc update.

* tb/doc-eol-normalization:
gitattributes.txt: document how to normalize the line endings

1  2 
Documentation/gitattributes.txt
index a53d093ca1666e6f84f229f94a3e4b7b1ed6c899,0b03d91e6bdc544ff3be4e4748b1f96fb00877f8..4736483865ee56c3cf23f41985e2064fbef0cfea
@@@ -21,11 -21,9 +21,11 @@@ Each line in `gitattributes` file is o
        pattern attr1 attr2 ...
  
  That is, a pattern followed by an attributes list,
 -separated by whitespaces.  When the pattern matches the
 -path in question, the attributes listed on the line are given to
 -the path.
 +separated by whitespaces. Leading and trailing whitespaces are
 +ignored. Lines that begin with '#' are ignored. Patterns
 +that begin with a double quote are quoted in C style.
 +When the pattern matches the path in question, the attributes
 +listed on the line are given to the path.
  
  Each attribute can be in one of these states for a given path:
  
@@@ -88,7 -86,7 +88,7 @@@ is either not set or empty, $HOME/.conf
  Attributes for all users on a system should be placed in the
  `$(prefix)/etc/gitattributes` file.
  
 -Sometimes you would need to override an setting of an attribute
 +Sometimes you would need to override a setting of an attribute
  for a path to `Unspecified` state.  This can be done by listing
  the name of the attribute prefixed with an exclamation point `!`.
  
@@@ -229,11 -227,9 +229,9 @@@ From a clean working directory
  
  -------------------------------------------------
  $ echo "* text=auto" >.gitattributes
- $ rm .git/index     # Remove the index to force Git to
- $ git reset         # re-scan the working directory
+ $ rm .git/index     # Remove the index to re-scan the working directory
+ $ git add .
  $ git status        # Show files that will be normalized
- $ git add -u
- $ git add .gitattributes
  $ git commit -m "Introduce end-of-line normalization"
  -------------------------------------------------