Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-rev-list: use proper lazy reachability analysis
[gitweb.git]
/
git-commit-script
diff --git
a/git-commit-script
b/git-commit-script
index f8d568ce88ff1e372b94c6dbfaeded149dcf103f..42ee399bc1028ab483aa4678ad376c065d7e7a5d 100755
(executable)
--- a/
git-commit-script
+++ b/
git-commit-script
@@
-5,9
+5,7
@@
then
cat .editmsg
exit 1
fi
-ED=${VISUAL:$EDITOR}
-ED=${ED:vi}
-$ED .editmsg
+${VISUAL:-${EDITOR:-vi}} .editmsg
grep -v '^#' < .editmsg | git-stripspace > .cmitmsg
[ -s .cmitmsg ] || exit 1
tree=$(git-write-tree) || exit 1