]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'tn/stash-avoid-sparse-index-expansion'
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:32:03 +0000 (10:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:32:03 +0000 (10:32 -0700)
The 'git stash push' command has been optimized to avoid unnecessary
sparse index expansion when pathspecs are wholly inside the
sparse-checkout cone.  Also, a potential out-of-bounds read in the
sparse-index expansion check helper pathspec_needs_expanded_index()
has been fixed by consistently using the parsed, prefixed path.

* tn/stash-avoid-sparse-index-expansion:
  stash: avoid sparse-index expansion for in-cone paths
  pathspec: use match for sparse-index expansion checks

1  2 
t/t1092-sparse-checkout-compatibility.sh