aboutsummaryrefslogtreecommitdiff
path: root/entry.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-24 18:03:04 -0800
committerJunio C Hamano <gitster@pobox.com>2007-11-24 18:03:04 -0800
commitbc2b8eafaf074492e0489974b4086b3a0f354e7e (patch)
treea5662a57c224c50309019386707eb95206248191 /entry.c
parentd1c7cd13dc7839b3c0b4d56a84f9effc9976144e (diff)
parent25487bde2ab756a423489fc942b37c1550555b93 (diff)
downloadgit-bc2b8eafaf074492e0489974b4086b3a0f354e7e.tar.gz
git-bc2b8eafaf074492e0489974b4086b3a0f354e7e.tar.xz
Merge branch 'jc/maint-add-sync-stat' into maint
* jc/maint-add-sync-stat: t2200: test more cases of "add -u" git-add: make the entry stat-clean after re-adding the same contents ce_match_stat, run_diff_files: use symbolic constants for readability
Diffstat (limited to 'entry.c')
-rw-r--r--entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/entry.c b/entry.c
index fc3a506ec..ef88f62ce 100644
--- a/entry.c
+++ b/entry.c
@@ -200,7 +200,7 @@ int checkout_entry(struct cache_entry *ce, const struct checkout *state, char *t
strcpy(path + len, ce->name);
if (!lstat(path, &st)) {
- unsigned changed = ce_match_stat(ce, &st, 1);
+ unsigned changed = ce_match_stat(ce, &st, CE_MATCH_IGNORE_VALID);
if (!changed)
return 0;
if (!state->force) {