git: Add git-abort & git-continue

I find typing `git {rebase,merge,...} --{continue,abort}` a bit
annoying, since it is a lot of typing. I have added an alias for `rebase
--continue` (grc), but the problem remained for the other commands.

Add a script that continues or aborts the ongoing process by detecting
it automatically.
This commit is contained in:
2025-06-19 13:15:41 +02:00
parent 9ed2f526da
commit 740c0b2fd7
3 changed files with 34 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
# the right directory, as shell commands in git aliases are executed
# from the top-level directory of the repository.
abort = "!git-zsh-autoload abort"
autosquash = -c sequence.editor=/bin/true rebase -i --autosquash
autofixup= autosquash
c = commit
@@ -17,6 +18,7 @@
cow = checkout-worktree
co = checkout
commit-last-msg = "!git-zsh-autoload commit-last-msg"
continue = "!git-zsh-autoload continue"
clm = commit-last-msg
last-msg = commit-last-msg
recommit = commit-last-msg --no-edit