git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GUILT 2/6] guilt-header: fix patch corruption

From
AJAlan Jenkins <alan.christopher.jenkins@googlemail.com>
Date
Sep 28, 2011, 14:15 UTC
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 <alan.christopher.jenkins@googlemail.com>
---
 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
Previous: Alan JenkinsNext: Alan Jenkins
Message 2 of 7 in “[GUILT 1/6] Refuse to push corrupt patches”
  1. Alan JenkinsSep 28, 2011
  2. 2/6 guilt-header: fix patch corruptionAlan Jenkins, Sep 28, 2011
  3. 3/6 Handle paths that contain spacesAlan Jenkins, Sep 28, 2011
  4. 4/6 Run regression tests in a directory which contains spacesAlan Jenkins, Sep 28, 2011
  5. 5/6 Allow guilt scripts to be run from a directory which contains spacesAlan Jenkins, Sep 28, 2011
  6. 6/6 Allow the regression tests to be run from a directory with spaces inAlan Jenkins, Sep 28, 2011
  7. Josef 'Jeff' SipekSep 30, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.