diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-10 18:16:25 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-10 18:16:25 -0700 |
commit | 2855e70ad11abf7e7f30f975b063bd60d5abdf4f (patch) | |
tree | 62c02c9ba89da45a68df017332c27c281384285d /read-cache.c | |
parent | Merge branch 'lt/case-insensitive' (diff) | |
parent | is_racy_timestamp(): do not check timestamp for gitlinks (diff) | |
download | tgif-2855e70ad11abf7e7f30f975b063bd60d5abdf4f.tar.xz |
Merge branch 'py/diff-submodule'
* py/diff-submodule:
is_racy_timestamp(): do not check timestamp for gitlinks
diff-lib.c: rename check_work_tree_entity()
diff: a submodule not checked out is not modified
Add t7506 to test submodule related functions for git-status
t4027: test diff for submodule with empty directory
Diffstat (limited to 'read-cache.c')
-rw-r--r-- | read-cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c index 3b20a142ea..4525f8a5ac 100644 --- a/read-cache.c +++ b/read-cache.c @@ -198,7 +198,8 @@ static int ce_match_stat_basic(struct cache_entry *ce, struct stat *st) static int is_racy_timestamp(const struct index_state *istate, struct cache_entry *ce) { - return (istate->timestamp && + return (!S_ISGITLINK(ce->ce_mode) && + istate->timestamp && ((unsigned int)istate->timestamp) <= ce->ce_mtime); } |