From 289cbfd3517dbe782daf635ce19d358fd5215d74 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Mon, 1 Jun 2009 04:07:33 -0700 Subject: [PATCH] [commit-patch] Simplify test by moving it inside another if statement. --- commit-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit-patch b/commit-patch index 1c5b0a1..ffe48b8 100755 --- a/commit-patch +++ b/commit-patch @@ -154,8 +154,8 @@ if ($commit_partial) { die "Couldn't find comment terminator (==END_COMMENT==)\n"; finished: $message = trim($message); + undef $message if $amend && $message eq $previous_message; } - undef $message if $amend && $message && $message eq $previous_message; die "No commit message, so I'm not going to do anything.\n" if !$amend && $message eq ''; } -- 2.51.2