Skip to content

nd/sparse reroll

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 Latest23 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23update-index: refactor mark_valid() in preparation for new optionsbuiltin-update-index.c+10 -140 replies
2/23Add test-index-version.gitignore Makefile test-index-version.c+16 -00 replies
3/23Introduce "skip-worktree" bit in index, teach Git to get/set this bitDocumentation/git-ls-files.txt Documentation/git-update-index.txt builtin-ls-files.c +3 more+109 -34 replies
4/23update-index: ignore update request if it's skip-worktreebuiltin-apply.c cache.h entry.c +2 more+21 -80 replies
5/23Teach ls-files and update-index to respect skip-worktree bitbuiltin-ls-files.c builtin-update-index.c t/t7011-skip-worktree-reading.sh+138 -160 replies
6/23Teach diff machinery to respect skip-worktree bitdiff-lib.c diff.c t/t7011-skip-worktree-reading.sh+27 -30 replies
7/23Teach grep to respect skip-worktree bitbuiltin-grep.c t/t7011-skip-worktree-reading.sh+10 -10 replies
8/23Teach commit to respect skip-worktree bitbuiltin-commit.c t/t7011-skip-worktree-reading.sh+21 -20 replies
9/23Teach Git to respect skip-worktree bit (writing part)t/t7012-skip-worktree-writing.sh unpack-trees.c+141 -20 replies
10/23Avoid writing to buffer in add_excludes_from_file_1()dir.c+2 -30 replies
11/23Read .gitignore from index if it is skip-worktreeDocumentation/technical/api-directory-listing.txt builtin-clean.c builtin-ls-files.c +3 more+95 -220 replies
12/23unpack-trees(): carry skip-worktree bit over in merged_entry()unpack-trees.c+2 -00 replies
13/23excluded_1(): support exclude files in indexdir.c+6 -00 replies
14/23dir.c: export excluded_1() and add_excludes_from_file_1()dir.c dir.h+20 -160 replies
15/23Introduce "sparse checkout"Documentation/git-read-tree.txt+44 -00 replies
16/23unpack-trees(): add CE_WT_REMOVE to remove on worktree alonecache.h unpack-trees.c+11 -10 replies
17/23unpack-trees.c: generalize verify_* functionsunpack-trees.c+18 -50 replies
18/23unpack-trees(): "enable" sparse checkout and load $GIT_DIR/info/sparse-checkoutDocumentation/config.txt Documentation/git-read-tree.txt cache.h +4 more+48 -70 replies
19/23unpack_trees(): apply $GIT_DIR/info/sparse-checkout to the final indexunpack-trees.c unpack-trees.h+83 -10 replies
20/23unpack-trees(): ignore worktree check outside checkout areaunpack-trees.c+12 -00 replies
21/23read-tree: add --no-sparse-checkout to disable sparse checkout supportDocumentation/git-read-tree.txt builtin-read-tree.c+8 -20 replies
22/23Add tests for sparse checkoutt/t1011-read-tree-sparse-checkout.sh+154 -00 replies
23/23sparse checkout: inhibit empty worktreet/t1011-read-tree-sparse-checkout.sh unpack-trees.c+10 -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 00/23] nd/sparse reroll

Compared to the current series in pu, patch "Teach Git to respect skip-worktree (reading part)" has been broken up into smaller patches. builtin-commit.c is also fixed to make the two failed test cases in t7011 now pass. Skip-worktree bit no longer relies on CE_MATCH_IGNORE_VALID flag, which means
"git update-index --really-refresh" respects skip-worktree bit too.

The rest is unchanged.

Nguyễn Thái Ngọc Duy (23):
update-index: refactor mark_valid() in preparation for new options Add test-index-version
Introduce "skip-worktree" bit in index, teach Git to get/set this bit
update-index: ignore update request if it's skip-worktree Teach ls-files and update-index to respect skip-worktree bit Teach diff machinery to respect skip-worktree bit
Teach grep to respect skip-worktree bit
Teach commit to respect skip-worktree bit
Teach Git to respect skip-worktree bit (writing part) Avoid writing to buffer in add_excludes_from_file_1()
Read .gitignore from index if it is skip-worktree unpack-trees(): carry skip-worktree bit over in merged_entry() excluded_1(): support exclude files in index
dir.c: export excluded_1() and add_excludes_from_file_1() Introduce "sparse checkout"
unpack-trees(): add CE_WT_REMOVE to remove on worktree alone unpack-trees.c: generalize verify_* functions unpack-trees(): "enable" sparse checkout and load
$GIT_DIR/info/sparse-checkout
unpack_trees(): apply $GIT_DIR/info/sparse-checkout to the final
index
unpack-trees(): ignore worktree check outside checkout area
read-tree: add --no-sparse-checkout to disable sparse checkout
support
Add tests for sparse checkout
sparse checkout: inhibit empty worktree

 .gitignore                                        |    1 +
 Documentation/config.txt                          |    4 +
 Documentation/git-ls-files.txt                    |    1 +
 Documentation/git-read-tree.txt                   |   52 ++++++-
 Documentation/git-update-index.txt                |   29 ++++
 Documentation/technical/api-directory-listing.txt |    3 +
 Makefile                                          |    1 +
 builtin-apply.c                                   |    2 +-
 builtin-clean.c                                   |    4 +-
 builtin-commit.c                                  |   11 +-
 builtin-grep.c                                    |    2 +-
 builtin-ls-files.c                                |   11 +-
 builtin-read-tree.c                               |    4 +-
 builtin-update-index.c                            |   78 ++++++----
 cache.h                                           |   10 +-
 config.c                                          |    5 +
 diff-lib.c                                        |    5 +-
 diff.c                                            |    2 +-
 dir.c                                             |  100 ++++++++----
 dir.h                                             |    4 +
 entry.c                                           |    2 +-
 environment.c                                     |    1 +
 read-cache.c                                      |   17 ++-
 t/t1011-read-tree-sparse-checkout.sh              |  150 +++++++++++++++++
 t/t2104-update-index-skip-worktree.sh             |   57 +++++++
 t/t3001-ls-files-others-exclude.sh                |   22 +++
 t/t7011-skip-worktree-reading.sh                  |  158 ++++++++++++++++++
 t/t7012-skip-worktree-writing.sh                  |  139 ++++++++++++++++
 t/t7300-clean.sh                                  |   19 +++
 test-index-version.c                              |   14 ++
 unpack-trees.c                                    |  181 +++++++++++++++++++--
 unpack-trees.h                                    |    6 +
 32 files changed, 994 insertions(+), 101 deletions(-)
 create mode 100755 t/t1011-read-tree-sparse-checkout.sh
 create mode 100755 t/t2104-update-index-skip-worktree.sh
 create mode 100755 t/t7011-skip-worktree-reading.sh
 create mode 100755 t/t7012-skip-worktree-writing.sh
 create mode 100644 test-index-version.c