AutoYADM commit: 2025-06-03 13:00:14
This commit is contained in:
parent
f4d51acdfb
commit
b81120710b
7 changed files with 75 additions and 15 deletions
|
@ -75,6 +75,8 @@ _git-forgit() {
|
|||
'rebase:git rebase'
|
||||
'reset_head:git reset HEAD (unstage) selector'
|
||||
'revert_commit:git revert commit selector'
|
||||
'reword:git fixup=reword'
|
||||
'squash:git squash'
|
||||
'stash_show:git stash viewer'
|
||||
'stash_push:git stash push selector'
|
||||
)
|
||||
|
@ -96,6 +98,8 @@ _git-forgit() {
|
|||
rebase) _git-rebase ;;
|
||||
reset_head) _git-staged ;;
|
||||
revert_commit) __git_recent_commits ;;
|
||||
reword) __git_branch_names ;;
|
||||
squash) __git_branch_names ;;
|
||||
stash_show) _git-stash-show ;;
|
||||
show) _git-show ;;
|
||||
esac
|
||||
|
@ -122,6 +126,8 @@ compdef _git-reflog forgit::reflog
|
|||
compdef _git-rebase forgit::rebase
|
||||
compdef _git-staged forgit::reset::head
|
||||
compdef __git_recent_commits forgit::revert::commit
|
||||
compdef __git_branch_names forgit::reword
|
||||
compdef __git_branch_names forgit::squash
|
||||
compdef _git-stash-show forgit::stash::show
|
||||
compdef _git-show forgit::show
|
||||
|
||||
|
|
|
@ -75,7 +75,9 @@ _git_forgit()
|
|||
rebase
|
||||
reset_head
|
||||
revert_commit
|
||||
reword
|
||||
show
|
||||
squash
|
||||
stash_show
|
||||
stash_push
|
||||
"
|
||||
|
@ -102,7 +104,9 @@ _git_forgit()
|
|||
rebase) _git_rebase ;;
|
||||
reset_head) _git_reset ;;
|
||||
revert_commit) _git_revert ;;
|
||||
reword) _git_branch ;;
|
||||
show) _git_show ;;
|
||||
squash) _git_branch ;;
|
||||
stash_show) _git_stash_show ;;
|
||||
esac
|
||||
;;
|
||||
|
@ -137,7 +141,9 @@ then
|
|||
__git_complete forgit::rebase _git_rebase
|
||||
__git_complete forgit::reset::head _git_reset
|
||||
__git_complete forgit::revert::commit _git_revert
|
||||
__git_complete forgit::reword _git_branch
|
||||
__git_complete forgit::show _git_show
|
||||
__git_complete forgit::squash _git_branch
|
||||
__git_complete forgit::stash::show _git_stash_show
|
||||
|
||||
# Completion for forgit plugin shell aliases
|
||||
|
@ -157,7 +163,9 @@ then
|
|||
__git_complete "${forgit_rebase}" _git_rebase
|
||||
__git_complete "${forgit_reset_head}" _git_reset
|
||||
__git_complete "${forgit_revert_commit}" _git_revert
|
||||
__git_complete "${forgit_reword_commit}" _git_branch
|
||||
__git_complete "${forgit_show}" _git_show
|
||||
__git_complete "${forgit_squash}" _git_branch
|
||||
__git_complete "${forgit_stash_show}" _git_stash_show
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
function __fish_forgit_needs_subcommand
|
||||
for subcmd in add blame branch_delete checkout_branch checkout_commit checkout_file checkout_tag \
|
||||
cherry_pick cherry_pick_from_branch clean diff fixup ignore log reflog rebase reset_head \
|
||||
revert_commit stash_show stash_push
|
||||
revert_commit reword squash stash_show stash_push
|
||||
if contains -- $subcmd (commandline -opc)
|
||||
return 1
|
||||
end
|
||||
|
@ -40,7 +40,9 @@ complete -c git-forgit -n __fish_forgit_needs_subcommand -a reflog -d 'git reflo
|
|||
complete -c git-forgit -n __fish_forgit_needs_subcommand -a rebase -d 'git rebase'
|
||||
complete -c git-forgit -n __fish_forgit_needs_subcommand -a reset_head -d 'git reset HEAD (unstage) selector'
|
||||
complete -c git-forgit -n __fish_forgit_needs_subcommand -a revert_commit -d 'git revert commit selector'
|
||||
complete -c git-forgit -n __fish_forgit_needs_subcommand -a reword -d 'git fixup=reword'
|
||||
complete -c git-forgit -n __fish_forgit_needs_subcommand -a show -d 'git show viewer'
|
||||
complete -c git-forgit -n __fish_forgit_needs_subcommand -a squash -d 'git squash'
|
||||
complete -c git-forgit -n __fish_forgit_needs_subcommand -a stash_show -d 'git stash viewer'
|
||||
complete -c git-forgit -n __fish_forgit_needs_subcommand -a stash_push -d 'git stash push selector'
|
||||
|
||||
|
@ -59,6 +61,8 @@ complete -c git-forgit -n '__fish_seen_subcommand_from reflog' -a "(complete -C
|
|||
complete -c git-forgit -n '__fish_seen_subcommand_from rebase' -a "(complete -C 'git rebase ')"
|
||||
complete -c git-forgit -n '__fish_seen_subcommand_from reset_head' -a "(__fish_git_files all-staged)"
|
||||
complete -c git-forgit -n '__fish_seen_subcommand_from revert_commit' -a "(__fish_git_commits)"
|
||||
complete -c git-forgit -n '__fish_seen_subcommand_from reword' -a "(__fish_git_local_branches)"
|
||||
complete -c git-forgit -n '__fish_seen_subcommand_from show' -a "(complete -C 'git show ')"
|
||||
complete -c git-forgit -n '__fish_seen_subcommand_from squash' -a "(__fish_git_local_branches)"
|
||||
complete -c git-forgit -n '__fish_seen_subcommand_from stash_show' -a "(__fish_git_complete_stashes)"
|
||||
complete -c git-forgit -n '__fish_seen_subcommand_from stash_push' -a "(__fish_git_files modified deleted modified-staged-deleted)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue