{"thread":{"id":"3682","subject":"[PATCH] Be verbose when !initial commit","startedAt":"2006-03-20T13:11:12Z","lastAt":"2006-03-20T13:11:12Z","messageCount":1,"participants":["Yasushi SHOJI"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"17705","messageId":"87y7z58dn3.wl@mail2.atmark-techno.com","threadId":"3682","inReplyTo":null,"subject":"[PATCH] Be verbose when !initial commit","fromName":"Yasushi SHOJI","fromEmail":"yashi@atmark-techno.com","sentAt":"2006-03-20T13:11:12Z","receivedAt":"2006-03-20T13:11:12Z","isPatch":true,"sender":{"key":"yashi@atmark-techno.com","avatar":"https://gravatar.com/avatar/4817e8703ac4379935834d87453faa9d0c94b9dc19d83fcc54c67875eb133e59?d=mp&s=160"},"body":"verbose option in git-commit.sh lead us to run git-diff-index, which\nneeds a commit-ish we are making diff against.  When we are commiting\nthe fist set, we obviously don't have any commit-ish in the repo.  So\nwe just skip the git-diff-index run.\n\nIt might be possible to produce diff against empty but do we need\nthat?\n\nSigned-off-by: Yasushi SHOJI <yashi@atmark-techno.com>\n\n\n---\n\n git-commit.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ne071afdc1c6e9ce6bbee14aa0652e7bb7043550c\ndiff --git a/git-commit.sh b/git-commit.sh\nindex 330a434..1e7c09e 100755\n--- a/git-commit.sh\n+++ b/git-commit.sh\n@@ -161,7 +161,7 @@ run_status () {\n \t    }\n \t'\n \n-\tif test -n \"$verbose\"\n+\tif test -n \"$verbose\" -a -z \"$IS_INITIAL\"\n \tthen\n \t    git-diff-index --cached -M -p --diff-filter=MDTCRA $REFERENCE\n \tfi\n-- \n1.2.4\n"}]}