]> git.ipfire.org Git - thirdparty/git.git/commit
t1092: expand repository data shape
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 14 Jul 2021 13:12:28 +0000 (13:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jul 2021 20:42:48 +0000 (13:42 -0700)
commite669ffb2b8f7effa4f6876f61c35ae5c4a8566b2
tree30c26829925e349c2afe511a156ad9d8714be8fa
parent3d814b5dc0567ebca1c40c6fe10bd9f19ca31f58
t1092: expand repository data shape

As more features integrate with the sparse-index feature, more and more
special cases arise that require different data shapes within the tree
structure of the repository in order to demonstrate those cases.

Add several interesting special cases all at once instead of sprinkling
them across several commits. The interesting cases being added here are:

* Add sparse-directory entries on both sides of directories within the
  sparse-checkout definition.

* Add directories outside the sparse-checkout definition who have only
  one entry and are the first entry of a directory with multiple
  entries.

* Add filenames adjacent to a sparse directory entry that sort before
  and after the trailing slash.

Later tests will take advantage of these shapes, but they also deepen
the tests that already exist.

Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1092-sparse-checkout-compatibility.sh