git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
f900c83
)
dir: free untracked cache when removing it
author
Christian Couder
<redacted>
Tue, 29 Dec 2015 07:09:25 +0000
(08:09 +0100)
committer
Junio C Hamano
<redacted>
Tue, 29 Dec 2015 21:38:41 +0000
(13:38 -0800)
Signed-off-by: Christian Couder <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/update-index.c
patch
|
blob
|
history
diff --git
a/builtin/update-index.c
b/builtin/update-index.c
index 7431938fa654ba9af524a7018ab2c7be8242caaa..a6fff87c1d2825d46818fd481b3fb01891d6d535 100644
(file)
--- a/
builtin/update-index.c
+++ b/
builtin/update-index.c
@@
-1123,6
+1123,7
@@
int cmd_update_index(int argc, const char **argv, const char *prefix)
add_untracked_ident(the_index.untracked);
the_index.cache_changed |= UNTRACKED_CHANGED;
} else if (!untracked_cache && the_index.untracked) {
+ free_untracked_cache(the_index.untracked);
the_index.untracked = NULL;
the_index.cache_changed |= UNTRACKED_CHANGED;
}
git clone https://git.99rst.org/PROJECT