summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-04-11 20:49:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-04-11 20:49:12 (GMT)
commitd02343b5991d2dc24953fc0bda05f4c6fcde2781 (patch)
tree77881018d143fcbf24013dcf7a5771ef1bfca7a3 /git.c
parentf285f68a132109c234d93490671c00218066ace9 (diff)
parent00408adeac13f6c16f93a3856961f7b327485c6b (diff)
downloadgit-d02343b5991d2dc24953fc0bda05f4c6fcde2781.zip
git-d02343b5991d2dc24953fc0bda05f4c6fcde2781.tar.gz
git-d02343b5991d2dc24953fc0bda05f4c6fcde2781.tar.bz2
Merge branch 'ws/sparse-check-rules'
"git sparse-checkout" command learns a debugging aid for the sparse rule definitions. * ws/sparse-check-rules: builtin/sparse-checkout: add check-rules command builtin/sparse-checkout: remove NEED_WORK_TREE flag
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 77f920a..de681f4 100644
--- a/git.c
+++ b/git.c
@@ -587,7 +587,7 @@ static struct cmd_struct commands[] = {
{ "show-branch", cmd_show_branch, RUN_SETUP },
{ "show-index", cmd_show_index, RUN_SETUP_GENTLY },
{ "show-ref", cmd_show_ref, RUN_SETUP },
- { "sparse-checkout", cmd_sparse_checkout, RUN_SETUP | NEED_WORK_TREE },
+ { "sparse-checkout", cmd_sparse_checkout, RUN_SETUP },
{ "stage", cmd_add, RUN_SETUP | NEED_WORK_TREE },
{ "stash", cmd_stash, RUN_SETUP | NEED_WORK_TREE },
{ "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },