blob: 9dfc2ee929db689b9dea216decaafe3a80947004 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# Creates a commit from the given files and automatically
# squashes it into the last commit on HEAD.
set -e
if [ "x`git branch -r --contains HEAD`" != x ]; then
echo "HEAD commit already pushed?"
exit 1
fi
git commit --fixup=HEAD "$@"
git rebase --autostash --autosquash HEAD~~
|