From: Alan Jenkins Date: Wed, 28 Sep 2011 14:15:20 GMT Subject: [GUILT 2/6] guilt-header: fix patch corruption Message-ID: <1317219324-10319-2-git-send-email-alan.christopher.jenkins@googlemail.com> In-Reply-To: <1317219324-10319-1-git-send-email-alan.christopher.jenkins@googlemail.com> Hunks containing the string "END{}" were being corrupted. Signed-off-by: Alan Jenkins --- guilt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/guilt b/guilt index 51532f9..5d79e0f 100755 --- a/guilt +++ b/guilt @@ -341,7 +341,9 @@ do_get_patch() { cat "$1" | awk ' BEGIN{} -/^(diff |---$|--- )/,/END{}/ +/^(diff |---$|--- )/ {patch = 1} +patch == 1 {print $0} +END{} ' } -- 1.7.4.1