diff --git a/.config/git/config b/.config/git/config index 5c3e881..e02e540 100644 --- a/.config/git/config +++ b/.config/git/config @@ -16,7 +16,7 @@ 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\"" 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\"" track = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-track\"" [blame] diff --git a/.config/zsh/autoload/git/git-signoff b/.config/zsh/autoload/git/git-signoff deleted file mode 100755 index 49d9a35..0000000 --- a/.config/zsh/autoload/git/git-signoff +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env zsh -## Author: Julian Prein -## 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