diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2023-03-26 22:45:43 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-03-27 09:40:40 -0700 |
| commit | 061dd722dcc7a0e1f506c426ff6591b0ca8f14b6 (patch) | |
| tree | becf0f0d93c181d9406440813bf3e3d4268a726a /commit.c | |
| parent | fsmonitor: avoid overriding `cache_changed` bits (diff) | |
| download | git-061dd722dcc7a0e1f506c426ff6591b0ca8f14b6.tar.gz git-061dd722dcc7a0e1f506c426ff6591b0ca8f14b6.zip | |
unpack-trees: take care to propagate the split-index flag
When copying the `split_index` structure from one index structure to
another, we need to propagate the `SPLIT_INDEX_ORDERED` flag, too, if it
is set, otherwise Git might forget to write the shared index when that
is actually needed.
It just so _happens_ that in many instances when `unpack_trees()` is
called, the result causes the shared index to be written anyway, but
there are edge cases when that is not so.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
