mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
d9f6f3b619
commit
94c0956b60
@@ -225,6 +225,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix);
|
||||
int cmd_show(int argc, const char **argv, const char *prefix);
|
||||
int cmd_show_branch(int argc, const char **argv, const char *prefix);
|
||||
int cmd_show_index(int argc, const char **argv, const char *prefix);
|
||||
int cmd_sparse_checkout(int argc, const char **argv, const char *prefix);
|
||||
int cmd_status(int argc, const char **argv, const char *prefix);
|
||||
int cmd_stash(int argc, const char **argv, const char *prefix);
|
||||
int cmd_stripspace(int argc, const char **argv, const char *prefix);
|
||||
|
||||
Reference in New Issue
Block a user