Re: [PATCH v2 1/2] Allow git-apply to ignore the hunk headers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Thursday, June 5, 2008 - 4:36 pm

Hi,

On Thu, 5 Jun 2008, Junio C Hamano wrote:


Oh yes, I was thinking about the "^---$".


Nice signature...

I could check for garbage after a line that consists of exactly "^-- $" 
with something like this (on top of 1/2):

@@ -0,0 +0,0 @@
 	default:
-		return -1;
+		return len != 4 && memcmp(line - len, "-- \n", len);
 	}

Hmm?

However, this will not work if anybody has a signature starting with 
"@@ ", "+", " ", "-" or "diff "...

Ciao,
Dscho

-- 
Won't dorry, he bappy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] Allow git-apply to fix up the line counts, Johannes Schindelin, (Thu Jun 5, 3:16 am)
[PATCH 2/2] git-add: introduce --edit (to edit the diff vs ..., Johannes Schindelin, (Thu Jun 5, 3:17 am)
Re: [PATCH 1/2] Allow git-apply to fix up the line counts, Johannes Schindelin, (Thu Jun 5, 6:04 am)
Re: [PATCH 1/2] Allow git-apply to fix up the line counts, Johannes Schindelin, (Thu Jun 5, 6:47 am)
Re: [PATCH 1/2] Allow git-apply to fix up the line counts, Johannes Schindelin, (Thu Jun 5, 7:54 am)
[PATCH v2 0/2] git add --edit, Johannes Schindelin, (Thu Jun 5, 9:19 am)
[PATCH v2 1/2] Allow git-apply to ignore the hunk headers, Johannes Schindelin, (Thu Jun 5, 9:20 am)
[PATCH v2 2/2] git-add: introduce --edit (to edit the diff ..., Johannes Schindelin, (Thu Jun 5, 9:20 am)
Re: [PATCH 1/2] Allow git-apply to fix up the line counts, Junio C Hamano, (Thu Jun 5, 11:39 am)
Re: [PATCH v2 1/2] Allow git-apply to ignore the hunk headers, Johannes Schindelin, (Thu Jun 5, 3:39 pm)
[PATCH v3 0/2] git add --edit, Johannes Schindelin, (Thu Jun 5, 4:06 pm)
[PATCH v3 1/2] Allow git-apply to ignore the hunk headers ..., Johannes Schindelin, (Thu Jun 5, 4:06 pm)
[PATCH v3 2/2] git-add: introduce --edit (to edit the diff ..., Johannes Schindelin, (Thu Jun 5, 4:07 pm)
Re: [PATCH v2 1/2] Allow git-apply to ignore the hunk headers, Johannes Schindelin, (Thu Jun 5, 4:36 pm)
Re: [PATCH v3 0/2] git add --edit, Junio C Hamano, (Thu Jun 5, 9:55 pm)
Re: [PATCH v3 1/2] Allow git-apply to ignore the hunk head ..., Johannes Schindelin, (Fri Jun 6, 6:58 am)
Re: [PATCH v3 0/2] git add --edit, Johannes Schindelin, (Fri Jun 6, 6:59 am)
Re: [PATCH v3 1/2] Allow git-apply to ignore the hunk head ..., Johannes Schindelin, (Fri Jun 6, 7:00 am)
Re: [PATCH v2 1/2] Allow git-apply to ignore the hunk headers, Johannes Schindelin, (Fri Jun 6, 7:04 am)
Re: [PATCH v3 2/2] git-add: introduce --edit (to edit the ..., Johannes Schindelin, (Fri Jun 6, 7:21 am)
Re: [PATCH v2 1/2] Allow git-apply to ignore the hunk headers, Johannes Schindelin, (Fri Jun 6, 7:27 am)
Re: [PATCH v3 1/2] Allow git-apply to ignore the hunk head ..., Johannes Schindelin, (Fri Jun 6, 9:37 am)
Re: [PATCH v3 1/2] Allow git-apply to ignore the hunk head ..., Johannes Schindelin, (Fri Jun 6, 10:35 am)