Files
git/builtin
Victoria Dye 7497039241 read-tree: narrow scope of index expansion for '--prefix'
When 'git read-tree' is provided with a prefix, expand the index only if the
prefix is equivalent to a sparse directory or contained within one. If the
index is not expanded in these cases, 'ce_in_traverse_path' will indicate
that the relevant sparse directory is not in the prefix/traverse path,
skipping past it and not unpacking the appropriate tree(s).

If the prefix is in-cone, its sparse subdirectories (if any) will be
traversed correctly without index expansion.

The behavior of 'git read-tree' with prefixes 1) inside of cone, 2) equal to
a sparse directory, and 3) inside a sparse directory are all tested as part
of the 't/t1092-sparse-checkout-compatibility.sh' test 'read-tree --prefix',
ensuring that the sparse index case works the way it did prior to this
change as well as matching non-sparse index sparse-checkout.

Helped-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-03-01 12:36:01 -08:00
..
2022-01-27 18:00:15 -08:00
2022-02-09 14:21:00 -08:00
2022-02-11 10:06:41 -08:00
2022-02-17 16:25:05 -08:00
2021-10-28 09:57:09 -07:00
2022-02-09 14:21:00 -08:00
2021-10-23 10:45:25 -07:00
2022-02-16 15:14:29 -08:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2022-01-10 11:52:53 -08:00
2022-01-03 16:24:15 -08:00
2022-02-17 16:25:05 -08:00
2022-01-10 11:52:56 -08:00
2022-02-11 10:06:41 -08:00
2022-02-16 15:14:30 -08:00
2022-01-05 13:31:00 -08:00
2021-11-03 13:25:36 -07:00