aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhostetler@github.com>2024-02-26 21:39:13 +0000
committerJunio C Hamano <gitster@pobox.com>2024-02-26 15:34:01 -0800
commit32ca706fadb947e7cb461f4c9780ccd233ef93d9 (patch)
tree0f00cdb5969e93d64815929562fd67055afa2a10 /builtin/commit.c
parentname-hash: add index_dir_find() (diff)
downloadgit-32ca706fadb947e7cb461f4c9780ccd233ef93d9.tar.gz
git-32ca706fadb947e7cb461f4c9780ccd233ef93d9.zip
t7527: add case-insensitve test for FSMonitor
The FSMonitor client code trusts the spelling of the pathnames in the FSEvents received from the FSMonitor daemon. On case-insensitive file systems, these OBSERVED pathnames may be spelled differently than the EXPECTED pathnames listed in the .git/index. This causes a miss when using `index_name_pos()` which expects the given case to be correct. When this happens, the FSMonitor client code does not update the state of the CE_FSMONITOR_VALID bit when refreshing the index (and before starting to scan the worktree). This results in modified files NOT being reported by `git status` when there is a discrepancy in the case-spelling of a tracked file's pathname. This commit contains a (rather contrived) test case to demonstrate this. A later commit in this series will update the FSMonitor client code to recognize these discrepancies and update the CE_ bit accordingly. Signed-off-by: Jeff Hostetler <jeffhostetler@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions