summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-02-27 21:58:30 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-02-27 21:58:30 -0800
commitc8cdbf2badcc500ec68c506a3b4bda9b1e18995f (patch)
tree319dadc562b6b4b8a607ec262f07fed482ce9acc /builtin
parentMerge branch 'mz/rerere-remaining' (diff)
parentgit-patch-id: do not trip over "no newline" markers (diff)
downloadtgif-c8cdbf2badcc500ec68c506a3b4bda9b1e18995f.tar.xz
Merge branch 'mg/patch-id'
* mg/patch-id: git-patch-id: do not trip over "no newline" markers git-patch-id: test for "no newline" markers
Diffstat (limited to 'builtin')
-rw-r--r--builtin/patch-id.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/patch-id.c b/builtin/patch-id.c
index 512530022e..49a0472a9b 100644
--- a/builtin/patch-id.c
+++ b/builtin/patch-id.c
@@ -73,6 +73,8 @@ int get_one_patchid(unsigned char *next_sha1, git_SHA_CTX *ctx)
p += 7;
else if (!memcmp(line, "From ", 5))
p += 5;
+ else if (!memcmp(line, "\\ ", 2) && 12 < strlen(line))
+ continue;
if (!get_sha1_hex(p, next_sha1)) {
found_next = 1;