cfg/bin/git-fixup-last
Knut Ahlers e6792b2ba2
Fix: Pass through parameters to git-c
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-11-19 16:48:41 +01:00

9 lines
250 B
Bash
Executable file

#!/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) "$@"