From 9600157ceb13f7b720059d262011c698f16bdd25 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Mon, 1 Jun 2009 04:06:19 -0700 Subject: [PATCH] [commit-patch] Whitespace (reindent). --- commit-patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/commit-patch b/commit-patch index 02fec45..1c5b0a1 100755 --- a/commit-patch +++ b/commit-patch @@ -144,17 +144,17 @@ if ($commit_partial) { run([split(/ /,$vc{diff}), @ARGV], '>>', $patch); system(($ENV{VISUAL} || $ENV{EDITOR} || 'vi')." ".$patch); - if (defined $message) { - open PATCH, '<', $patch or die "couldn't read $patch: $!\n"; - while () { - next if /^\#/; - goto finished if /^==END_COMMENT==$/; + if (defined $message) { + open PATCH, '<', $patch or die "couldn't read $patch: $!\n"; + while () { + next if /^\#/; + goto finished if /^==END_COMMENT==$/; $message .= $_; + } + die "Couldn't find comment terminator (==END_COMMENT==)\n"; + finished: + $message = trim($message); } - die "Couldn't find comment terminator (==END_COMMENT==)\n"; - finished: - $message = trim($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