Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
checkout.c: unstage empty deleted ita files
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 91f8509f85396cb957ee87d1b0e8ba1284c8c800..27daa09c3ce860f967802e9783afcf00d965fcbd 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-126,6
+126,7
@@
static int update_some(const struct object_id *oid, struct strbuf *base,
if (pos >= 0) {
struct cache_entry *old = active_cache[pos];
if (ce->ce_mode == old->ce_mode &&
+ !ce_intent_to_add(old) &&
oideq(&ce->oid, &old->oid)) {
old->ce_flags |= CE_UPDATE;
discard_cache_entry(ce);