blob: 8910b2a29edf02579cef663c0b19ebfaa7a02d70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash -e
# Retrofit changes onto an old commit during the next rebase/rewrite:
# `git fixup [COMMITISH]` (for example, `git fixup HEAD`).
COMMIT=HEAD
if [ $# -gt 0 ]; then
COMMIT="$1"
shift
fi
exec git commit --fixup "${COMMIT}" "$@"
|