Add simple wrapper to fixup last non-fixup
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
51b1129ffb
commit
1ca4700040
1 changed files with 9 additions and 0 deletions
9
bin/git-fixup-last
Executable file
9
bin/git-fixup-last
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
source ${HOME}/bin/script_framework.sh
|
||||
|
||||
commit=$(git log master..HEAD --oneline | grep -v 'fixup!' | head -n1)
|
||||
|
||||
step "Doing fixup against commit: ${commit}"
|
||||
exec git c --fixup $(echo "${commit}" | cut -d ' ' -f 1)
|
Loading…
Reference in a new issue