Skip to content

Sparse checkout fixes

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cache.h: remove surrounding brackes and realign CE_* constantscache.h+12 -131 reply
1/5cache.h: realign and use (1 << x) form for CE_* constantscache.h+12 -130 replies
2/5dir.c: add free_excludes()dir.c dir.h unpack-trees.c+14 -50 replies
3/5unpack-trees: move all skip-worktree checks back to unpack_trees()cache.h unpack-trees.c+74 -90 replies
3/5unpack-trees: move all skip-worktree checks back to unpack_trees()cache.h unpack-trees.c+74 -90 replies
4/5unpack-trees: fix sparse checkout's "unable to match directories"Documentation/git-read-tree.txt t/t1011-read-tree-sparse-checkout.sh unpack-trees.c+155 -200 replies
5/5Revert "excluded_1(): support exclude files in index"dir.c+0 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Sparse checkout fixes

[on top of nd/maint-fix-add-typo-detection]

This fixes a sparse pattern sometimes won't match a directory if
- it does not end with a slash
- it has wildcards

The series also improves performance a bit, thanks to 3/5, skip-worktree bits are precomputed.

Improvements in the previous round [1] are left out. I will need to polish them a bit more.

[1] http://thread.gmane.org/gmane.comp.version-control.git/161477

Nguyễn Thái Ngọc Duy (5):
cache.h: remove surrounding brackes and realign CE_* constants dir.c: add free_excludes()
unpack-trees: move all skip-worktree checks back to unpack_trees()
unpack-trees: fix sparse checkout's "unable to match directories" Revert "excluded_1(): support exclude files in index"

 Documentation/git-read-tree.txt      |    7 -
 cache.h                              |   26 ++--
 dir.c                                |   19 ++-
 dir.h                                |    1 +
 t/t1011-read-tree-sparse-checkout.sh |   14 ++-
 unpack-trees.c                       |  240 ++++++++++++++++++++++++++++++----
 6 files changed, 254 insertions(+), 53 deletions(-)
Signature · 1 line
1.7.3.2.316.gda8b3