diff options
| author | Junio C Hamano <junkio@cox.net> | 2007-02-22 21:27:37 -0800 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2007-02-22 21:27:37 -0800 |
| commit | e79cbbea9e5a9b08722f35dbca3d04c7f40a1aa1 (patch) | |
| tree | b0974609d67763a8580bba07839a528c6fab7042 /git-commit.sh | |
| parent | Merge branch 'maint' (diff) | |
| parent | git-diff: fix combined diff (diff) | |
| download | git-e79cbbea9e5a9b08722f35dbca3d04c7f40a1aa1.tar.gz git-e79cbbea9e5a9b08722f35dbca3d04c7f40a1aa1.zip | |
Merge branch 'maint'
* maint:
git-diff: fix combined diff
Fix 'git commit -a' in a newly initialized repository
Include git-gui credits file in dist.
Document the new core.bare configuration option.
Diffstat (limited to 'git-commit.sh')
| -rwxr-xr-x | git-commit.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-commit.sh b/git-commit.sh index ec506d956f..476f4f18db 100755 --- 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 && |
