summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2bcab24)
raw | patch | inline | side by side (parent: 2bcab24)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 9 Feb 2006 08:55:17 +0000 (00:55 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 9 Feb 2006 08:55:17 +0000 (00:55 -0800) |
The earlier round failed to make --really-refresh to mark
up-to-date index entry to valid again due to a trivial thinko.
Signed-off-by: Junio C Hamano <junkio@cox.net>
up-to-date index entry to valid again due to a trivial thinko.
Signed-off-by: Junio C Hamano <junkio@cox.net>
update-index.c | patch | blob | history |
diff --git a/update-index.c b/update-index.c
index bb730509b871381ffbd8457bd38ce940d78ba50d..ce1db38d16928d8b5085cb6e177f40fff9a978cf 100644 (file)
--- a/update-index.c
+++ b/update-index.c
return ERR_PTR(-errno);
changed = ce_match_stat(ce, &st, really);
- if (!changed)
- return NULL;
+ if (!changed) {
+ if (really && assume_unchanged &&
+ !(ce->ce_flags & htons(CE_VALID)))
+ ; /* mark this one VALID again */
+ else
+ return NULL;
+ }
if (ce_modified(ce, &st, really))
return ERR_PTR(-EINVAL);