]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-update-index.txt
Documentation: How to ignore local changes in tracked files
authorPetr Baudis <pasky@suse.cz>
Fri, 18 Jul 2008 14:11:07 +0000 (16:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 19 Jul 2008 18:17:43 +0000 (11:17 -0700)
commit6259ac6628477aa5ebde9bd9e8daaeecca2a74ae
tree3d0480c01add01bf5fe8be392ec8a52a2eb075c8
parentc47f10246ac6413ac6902bd70e45492174fac873
Documentation: How to ignore local changes in tracked files

This patch explains more carefully that `.gitignore` concerns only
untracked files and refers the reader to

git update-index --assume-unchanged

in the need of ignoring uncommitted changes in already tracked files.
The description of this option is lifted to a more "porcelainish"
level and explains the caveats of this usecase.

Whether feasible or not, I believe adding this functionality to
the porcelain is out of the scope of this patch. (And I personally
think that referring to the plumbing in the case of such a special
usage is fine.)

This is currently probably one of the top FAQs at #git and the
--assume-unchanged switch is not widely known; gitignore(5) is the first
place where people are likely to look for it.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-update-index.txt
Documentation/gitignore.txt