summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.config/git/config3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/git/config b/.config/git/config
index 1c59b7c..6e5cf1f 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -91,6 +91,8 @@
     pr = "!f() { git fetch -fu ${2:-origin} refs/pull/${1:?missing pr num}/head:pr/$1 && git checkout pr/$1; }; f"
     total-lines = "! git ls-tree -r master --name-only | xargs -I {} git blame --line-porcelain {} | sed -n 's/^author //p' | sort | uniq -c | sort -rn"
     fixup = "!f() { git commit --fixup=${1}; }; f"
+    fix = fixup
+    fixupf = "!f() { git commit --fixup=${1} && git rebase --autosquash --interactive ${1}^; }; f"
     squash = "!f() { git commit --squash=${1}; }; f"
     r = rebase
     ri = rebase --autosquash -i
@@ -109,7 +111,6 @@
     l = !fzfez git-log
     t = !fzfez git-tags
 
-
 [apply]
     # Detect whitespace errors when applying a patch
     whitespace = fix