File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 31
31
# Note that "git" is optional --- '!f() { : commit; ...}; f' would complete
32
32
# just like the 'git commit' command.
33
33
#
34
+ # To add completion for git subcommands that are implemented in external
35
+ # scripts, define a function of the form '_git_${subcommand}' while replacing
36
+ # all dashes with underscores, and the main git completion will make use of it.
37
+ # For example, to add completion for 'git do-stuff' (which could e.g. live
38
+ # in /usr/bin/git-do-stuff), name the completion function '_git_do_stuff'.
39
+ # See _git_show, _git_bisect etc. below for more examples.
40
+ #
34
41
# If you have a shell command that is not part of git (and is not called as a
35
42
# git subcommand), but you would still like git-style completion for it, use
36
43
# __git_complete. For example, to use the same completion as for 'git log' also
You can’t perform that action at this time.
0 commit comments