diff options
author | Christian Couder <christian.couder@gmail.com> | 2016-01-24 16:28:17 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-25 12:39:34 -0800 |
commit | 6d19db1491f1f48c5112f460e1f2d2e359e113c9 (patch) | |
tree | 1ed08cbf40630b39e9322fe0a5196a27fc7e1ebd /builtin/merge-ours.c | |
parent | update-index: add --test-untracked-cache (diff) | |
download | tgif-6d19db1491f1f48c5112f460e1f2d2e359e113c9.tar.xz |
update-index: add untracked cache notifications
Attempting to flip the untracked-cache feature on for a random index
file with
cd /random/unrelated/place
git --git-dir=/somewhere/else/.git update-index --untracked-cache
would not work as you might expect. Because flipping the feature on
in the index also records the location of the corresponding working
tree (/random/unrelated/place in the above example), when the index
is subsequently used to keep track of files in the working tree in
/somewhere/else, the feature is disabled.
With this patch "git update-index --[test-]untracked-cache" tells the
user in which directory tests are performed. This makes it easy to
spot any problem.
Also in verbose mode, let's tell the user when the cache is enabled
or disabled.
Helped-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/merge-ours.c')
0 files changed, 0 insertions, 0 deletions