summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2020-05-10 16:12:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-05-11 15:40:28 (GMT)
commit9068cfb20f5699fd639a559af14affaefe43a812 (patch)
tree5c58d3b928060326346888b9e0fb05a019d18059 /t/helper
parent7397ca33730626f682845f8691b39c305535611e (diff)
downloadgit-9068cfb20f5699fd639a559af14affaefe43a812.zip
git-9068cfb20f5699fd639a559af14affaefe43a812.tar.gz
git-9068cfb20f5699fd639a559af14affaefe43a812.tar.bz2
fsck: report non-consecutive duplicate names in trees
Tree entries are sorted in path order, meaning that directory names get a slash ('/') appended implicitly. Git fsck checks if trees contains consecutive duplicates, but due to that ordering there can be non-consecutive duplicates as well if one of them is a directory and the other one isn't. Such a tree cannot be fully checked out. Find these duplicates by recording candidate file names on a stack and check candidate directory names against that stack to find matches. Suggested-by: Brandon Williams <bwilliamseng@gmail.com> Original-test-by: Brandon Williams <bwilliamseng@gmail.com> Signed-off-by: René Scharfe <l.s.r@web.de> Reviewed-by: Luke Diamand <luke@diamand.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
0 files changed, 0 insertions, 0 deletions