blob: 3b937ec5e257bf85ff675b73781ca700eb215bdb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
set -eu
if [ -e "$(git root)/.git/branchless" ]; then
exec git branchless amend "$@"
else
if [ "${1:-}" = "-i" ]; then
git add -p
else
git add -u
fi
git commit --amend
fi
|