Merge branch 'tc/completion-reflog'
* tc/completion-reflog: bash completion: add basic support for git-reflog
This commit is contained in:
commit
876e78f31d
@ -735,7 +735,6 @@ __git_list_porcelain_commands ()
|
|||||||
quiltimport) : import;;
|
quiltimport) : import;;
|
||||||
read-tree) : plumbing;;
|
read-tree) : plumbing;;
|
||||||
receive-pack) : plumbing;;
|
receive-pack) : plumbing;;
|
||||||
reflog) : plumbing;;
|
|
||||||
remote-*) : transport;;
|
remote-*) : transport;;
|
||||||
repo-config) : deprecated;;
|
repo-config) : deprecated;;
|
||||||
rerere) : plumbing;;
|
rerere) : plumbing;;
|
||||||
@ -1632,6 +1631,18 @@ _git_rebase ()
|
|||||||
__gitcomp "$(__git_refs)"
|
__gitcomp "$(__git_refs)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_git_reflog ()
|
||||||
|
{
|
||||||
|
local subcommands="show delete expire"
|
||||||
|
local subcommand="$(__git_find_on_cmdline "$subcommands")"
|
||||||
|
|
||||||
|
if [ -z "$subcommand" ]; then
|
||||||
|
__gitcomp "$subcommands"
|
||||||
|
else
|
||||||
|
__gitcomp "$(__git_refs)"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
__git_send_email_confirm_options="always never auto cc compose"
|
__git_send_email_confirm_options="always never auto cc compose"
|
||||||
__git_send_email_suppresscc_options="author self cc bodycc sob cccmd body all"
|
__git_send_email_suppresscc_options="author self cc bodycc sob cccmd body all"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user