Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
contrib/emacs: Use non-interactive function to byte-compile files
[gitweb.git]
/
git-commit.sh
diff --git
a/git-commit.sh
b/git-commit.sh
index cfa15110f6d7b11c7f778a3ef7ebbc034ce4d877..be3677c2049dca4deb35403804d5ea2d72254e7d 100755
(executable)
--- a/
git-commit.sh
+++ b/
git-commit.sh
@@
-318,6
+318,10
@@
esac
case "$all,$also" in
t,)
+ if test ! -f "$THIS_INDEX"
+ then
+ die 'nothing to commit (use "git add file1 file2" to include for commit)'
+ fi
save_index &&
(
cd_to_toplevel &&