{"thread":{"id":"1653","subject":"[PATCH] Fix the status output when there is nothing to commit.","startedAt":"2005-08-26T08:04:06Z","lastAt":"2005-08-26T08:04:06Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"7781","messageId":"7vek8hgm4p.fsf@assigned-by-dhcp.cox.net","threadId":"1653","inReplyTo":null,"subject":"[PATCH] Fix the status output when there is nothing to commit.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-08-26T08:04:06Z","receivedAt":"2005-08-26T08:04:06Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"It had an extra empty '#' line.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n\n---\n\n git-commit-script |    4 ++--\n git-status-script |    3 +--\n 2 files changed, 3 insertions(+), 4 deletions(-)\n\n22758793f9cde4379bacb067e2a4551373eaf073\ndiff --git a/git-commit-script b/git-commit-script\n--- a/git-commit-script\n+++ b/git-commit-script\n@@ -195,8 +195,8 @@ else\n fi\n if [ \"$?\" != \"0\" -a ! -f $GIT_DIR/MERGE_HEAD ]\n then\n-\tsed -ne '/^#/p' .editmsg\n-\trm .editmsg\n+\trm -f .editmsg\n+\tgit-status-script\n \texit 1\n fi\n case \"$no_edit\" in\ndiff --git a/git-status-script b/git-status-script\n--- a/git-status-script\n+++ b/git-status-script\n@@ -31,8 +31,7 @@ report () {\n branch=`readlink \"$GIT_DIR/HEAD\"`\n case \"$branch\" in\n refs/heads/master) ;;\n-*)\techo \"#\n-# On branch $branch\" ;;\n+*)\techo \"# On branch $branch\" ;;\n esac\n git-update-cache --refresh >/dev/null 2>&1\n git-diff-cache -M --cached HEAD | sed 's/^://' | report \"Updated but not checked in\" \"will commit\"\n"}]}