]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'bc/racy-4gb-files'
authorJunio C Hamano <gitster@pobox.com>
Mon, 23 Oct 2023 20:56:37 +0000 (13:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Oct 2023 20:56:37 +0000 (13:56 -0700)
The index file has room only for lower 32-bit of the file size in
the cached stat information, which means cached stat information
will have 0 in its sd_size member for a file whose size is multiple
of 4GiB.  This is mistaken for a racily clean path.  Avoid it by
storing a bogus sd_size value instead for such files.

* bc/racy-4gb-files:
  Prevent git from rehashing 4GiB files
  t: add a test helper to truncate files

1  2 
Makefile
t/helper/test-tool.c
t/helper/test-tool.h

diff --cc Makefile
Simple merge
Simple merge
Simple merge