]> git.ipfire.org Git - thirdparty/git.git/commit - .gitignore
sparse-checkout: create builtin with 'list' subcommand
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 21 Nov 2019 22:04:33 +0000 (22:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Nov 2019 07:11:43 +0000 (16:11 +0900)
commit94c0956b60969bbbb3ead19638d52591a59d713c
treef0c12fc430aa90b015adb130705feff3c926c0d8
parentd9f6f3b6195a0ca35642561e530798ad1469bd41
sparse-checkout: create builtin with 'list' subcommand

The sparse-checkout feature is mostly hidden to users, as its
only documentation is supplementary information in the docs for
'git read-tree'. In addition, users need to know how to edit the
.git/info/sparse-checkout file with the right patterns, then run
the appropriate 'git read-tree -mu HEAD' command. Keeping the
working directory in sync with the sparse-checkout file requires
care.

Begin an effort to make the sparse-checkout feature a porcelain
feature by creating a new 'git sparse-checkout' builtin. This
builtin will be the preferred mechanism for manipulating the
sparse-checkout file and syncing the working directory.

The documentation provided is adapted from the "git read-tree"
documentation with a few edits for clarity in the new context.
Extra sections are added to hint toward a future change to
a more restricted pattern set.

Helped-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Documentation/git-read-tree.txt
Documentation/git-sparse-checkout.txt [new file with mode: 0644]
Makefile
builtin.h
builtin/sparse-checkout.c [new file with mode: 0644]
command-list.txt
git.c
t/t1091-sparse-checkout-builtin.sh [new file with mode: 0755]