Name |
Last commit
|
Last update |
---|---|---|
.. | ||
add.c | ||
addall.c | ||
bypath.c | ||
cache.c | ||
collision.c | ||
conflicts.c | ||
conflicts.h | ||
crlf.c | ||
filemodes.c | ||
inmemory.c | ||
names.c | ||
nsec.c | ||
racy.c | ||
read_index.c | ||
read_tree.c | ||
rename.c | ||
reuc.c | ||
stage.c | ||
tests.c | ||
version.c |
While we do have a test which checks whether a written index of version 4 has the correct version set, we do not check whether this actually enables path compression for index entries. This commit adds a new test by adding a number of index entries with equal path prefixes to the index and subsequently flushing that to disk. With suffix compression enabled by index version 4, only the last few bytes of these paths will actually have to be written to the index, saving a lot of disk space. For the test, differences are about an order of magnitude, allowing us to easily verify without taking a deeper look at actual on-disk contents.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
add.c | Loading commit data... | |
addall.c | Loading commit data... | |
bypath.c | Loading commit data... | |
cache.c | Loading commit data... | |
collision.c | Loading commit data... | |
conflicts.c | Loading commit data... | |
conflicts.h | Loading commit data... | |
crlf.c | Loading commit data... | |
filemodes.c | Loading commit data... | |
inmemory.c | Loading commit data... | |
names.c | Loading commit data... | |
nsec.c | Loading commit data... | |
racy.c | Loading commit data... | |
read_index.c | Loading commit data... | |
read_tree.c | Loading commit data... | |
rename.c | Loading commit data... | |
reuc.c | Loading commit data... | |
stage.c | Loading commit data... | |
tests.c | Loading commit data... | |
version.c | Loading commit data... |