Files
git/builtin
Victoria Dye c35e9f5ecd update-index: integrate with sparse index
Enable use of the sparse index with `update-index`. Most variations of
`update-index` work without explicitly expanding the index or making any
other updates in or outside of `update-index.c`.

The one usage requiring additional changes is `--cacheinfo`; if a file
inside a sparse directory was specified, the index would not be expanded
until after the cache tree is invalidated, leading to a mismatch between the
index and cache tree. This scenario is handled by rearranging
`add_index_entry_with_check`, allowing `index_name_stage_pos` to expand the
index *before* attempting to invalidate the relevant cache tree path,
avoiding cache tree/index corruption.

Signed-off-by: Victoria Dye <vdye@github.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-01-13 13:49:45 -08:00
..
2021-10-13 15:15:57 -07:00
2021-12-21 15:03:17 -08:00
2021-12-15 09:39:47 -08:00
2022-01-13 13:49:45 -08:00
2021-10-28 09:57:09 -07:00
2021-12-06 09:55:06 -08:00
2021-11-10 15:01:20 -08:00
2021-10-23 10:45:25 -07:00
2022-01-03 16:24:14 -08:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2021-12-15 09:39:55 -08:00
2022-01-03 16:24:15 -08:00
2022-01-03 16:24:15 -08:00
2021-12-10 14:35:10 -08:00
2021-12-02 11:14:07 -08:00
2021-11-03 13:25:36 -07:00