feat(git): add sign-branch and check-signed aliases

This commit is contained in:
2026-10-16 14:37:37 +00:00
parent f265cef593
commit 43c153e8eb
4 changed files with 89 additions and 0 deletions

View File

@@ -91,6 +91,16 @@ fi
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# _git picks these up for the matching git aliases (git/config)
_git-sign-branch() {
_arguments \
'(-n --dry-run)'{-n,--dry-run}'[list the commits that would be signed]' \
':branch:__git_branch_names' \
':upstream:__git_references'
}
_git-check-signed() {
_arguments ':commit range:__git_commit_ranges'
}
# tool hooks
eval "$(ggman shellrc)"