]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git.c
Sync with maint
[thirdparty/git.git] / git.c
diff --git a/git.c b/git.c
index ce6ab0ece2cc6dbf153946701eed446940c9d304..7be7ad34bd053884ec48923706e70c81719a8660 100644 (file)
--- a/git.c
+++ b/git.c
@@ -572,6 +572,7 @@ static struct cmd_struct commands[] = {
        { "show-branch", cmd_show_branch, RUN_SETUP },
        { "show-index", cmd_show_index },
        { "show-ref", cmd_show_ref, RUN_SETUP },
+       { "sparse-checkout", cmd_sparse_checkout, RUN_SETUP | NEED_WORK_TREE },
        { "stage", cmd_add, RUN_SETUP | NEED_WORK_TREE },
        /*
         * NEEDSWORK: Until the builtin stash is thoroughly robust and no