File tree 2 files changed +25
-0
lines changed 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ COMMANDS
41
41
To avoid interfering with other worktrees, it first enables the
42
42
`extensions.worktreeConfig` setting and makes sure to set the
43
43
`core.sparseCheckout` setting in the worktree-specific config file.
44
+ +
45
+ When `--cone` is provided, the `core.sparseCheckoutCone` setting is
46
+ also set, allowing for better performance with a limited set of
47
+ patterns (see 'CONE PATTERN SET' below).
44
48
45
49
'set'::
46
50
Write a set of patterns to the sparse-checkout file, as given as
Original file line number Diff line number Diff line change @@ -2735,6 +2735,27 @@ _git_show_branch ()
2735
2735
__git_complete_revlist
2736
2736
}
2737
2737
2738
+ _git_sparse_checkout ()
2739
+ {
2740
+ local subcommands=" list init set disable"
2741
+ local subcommand=" $( __git_find_on_cmdline " $subcommands " ) "
2742
+ if [ -z " $subcommand " ]; then
2743
+ __gitcomp " $subcommands "
2744
+ return
2745
+ fi
2746
+
2747
+ case " $subcommand ,$cur " in
2748
+ init,--* )
2749
+ __gitcomp " --cone"
2750
+ ;;
2751
+ set,--* )
2752
+ __gitcomp " --stdin"
2753
+ ;;
2754
+ * )
2755
+ ;;
2756
+ esac
2757
+ }
2758
+
2738
2759
_git_stash ()
2739
2760
{
2740
2761
local save_opts=' --all --keep-index --no-keep-index --quiet --patch --include-untracked'
You can’t perform that action at this time.
0 commit comments