git: Replace git-signoff with rebase --signoff

Replace my custom git-signoff script with the native `--signoff` flag
for `git rebase`.
This commit is contained in:
2022-05-15 08:54:03 +02:00
parent 1dbd24fcf9
commit 09ef4d4d93
2 changed files with 1 additions and 22 deletions

View File

@@ -16,7 +16,7 @@
checkout-worktree = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-checkout-worktree\"" checkout-worktree = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-checkout-worktree\""
filter-repo = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/git/git-filter-repo/git-filter-repo\"" filter-repo = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/git/git-filter-repo/git-filter-repo\""
flog = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/glog\"" flog = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/glog\""
signoff = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-signoff\"" signoff = rebase --signoff
ssync = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-ssync\"" ssync = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-ssync\""
track = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-track\"" track = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-track\""
[blame] [blame]

View File

@@ -1,21 +0,0 @@
#!/usr/bin/env zsh
## Author: Julian Prein <druckdev@protonmail.com>
## Created: 2022-03-29
##
## Signoff range of commits
# Exit if not in git repo
git rev-parse || return
# Exit if no arguments were given
[[ $# -gt 0 ]] || return
# Signoff all commits
env GIT_SEQUENCE_EDITOR="sed -Ei 's/^p(ick)?/e/'" git rebase -i "$@" || return
while git rebase --show-current-patch &>/dev/null; do
git commit --amend --signoff --no-edit --no-verify
git rebase --continue
done
return 0