Code

Be verbose when !initial commit
authorYasushi SHOJI <yashi@atmark-techno.com>
Mon, 20 Mar 2006 13:11:12 +0000 (22:11 +0900)
committerJunio C Hamano <junkio@cox.net>
Mon, 20 Mar 2006 22:37:59 +0000 (14:37 -0800)
commit1fa7a68f4bf1d21bf6693f1d9a416b6a690efe52
treec2489c5e7263ea884f5fd18b141607c45d4cfdf2
parent3070b603ab349674fd357b1b7f9ba4698f2b86b7
Be verbose when !initial commit

verbose option in git-commit.sh lead us to run git-diff-index, which
needs a commit-ish we are making diff against.  When we are commiting
the fist set, we obviously don't have any commit-ish in the repo.  So
we just skip the git-diff-index run.

It might be possible to produce diff against empty but do we need
that?

Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh