diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-24 14:28:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-24 14:28:37 -0700 |
commit | 2bc81f2a83601ddfaad7d38406f819682f9cb756 (patch) | |
tree | 19e6fd3bb72f1abd3291826a974998fc27792e5c /Documentation | |
parent | Merge branch 'ab/wildmatch-glob-slash-test' (diff) | |
parent | doc: do not use `rm .git/index` when normalizing line endings (diff) | |
download | tgif-2bc81f2a83601ddfaad7d38406f819682f9cb756.tar.xz |
Merge branch 'ah/doc-gitattributes-empty-index'
An example in documentation that does not work in multi worktree
configuration has been corrected.
* ah/doc-gitattributes-empty-index:
doc: do not use `rm .git/index` when normalizing line endings
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/gitattributes.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt index 4736483865..2a2d7e2a4d 100644 --- a/Documentation/gitattributes.txt +++ b/Documentation/gitattributes.txt @@ -229,7 +229,7 @@ From a clean working directory: ------------------------------------------------- $ echo "* text=auto" >.gitattributes -$ rm .git/index # Remove the index to re-scan the working directory +$ git read-tree --empty # Clean index, force re-scan of working directory $ git add . $ git status # Show files that will be normalized $ git commit -m "Introduce end-of-line normalization" |