diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-20 12:37:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-20 12:37:32 -0700 |
commit | 005a1de380733477382c50e2e44ed8042c401fed (patch) | |
tree | 16d8b71bca9dd50d0c46b14948920b374f88c634 /Documentation | |
parent | Merge branch 'mm/commit-template-squelch-advice-messages' (diff) | |
parent | check-ignore: Add option to ignore index contents (diff) | |
download | tgif-005a1de380733477382c50e2e44ed8042c401fed.tar.xz |
Merge branch 'dw/check-ignore-sans-index'
"git check-ignore" follows the same rule as "git add" and "git
status" in that the ignore/exclude mechanism does not take effect
on paths that are already tracked. With "--no-index" option, it
can be used to diagnose which paths that should have been ignored
have been mistakenly added to the index.
* dw/check-ignore-sans-index:
check-ignore: Add option to ignore index contents
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-check-ignore.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-check-ignore.txt b/Documentation/git-check-ignore.txt index d2df487aa2..ee2e091704 100644 --- a/Documentation/git-check-ignore.txt +++ b/Documentation/git-check-ignore.txt @@ -45,6 +45,13 @@ OPTIONS not be possible to distinguish between paths which match a pattern and those which don't. +--no-index:: + Don't look in the index when undertaking the checks. This can + be used to debug why a path became tracked by e.g. `git add .` + and was not ignored by the rules as expected by the user or when + developing patterns including negation to match a path previously + added with `git add -f`. + OUTPUT ------ |