summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6555b19)
raw | patch | inline | side by side (parent: 6555b19)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Sat, 3 Apr 2010 19:52:17 +0000 (14:52 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 4 Apr 2010 17:17:55 +0000 (10:17 -0700) |
Handle perforations found “in the wild” more robustly by recognizing
“%<” as an alternative scissors mark.
This feature is only meant to support old habits. Discourage new use
of the percent-based version by only documenting the 8< symbol so new
users’ perforations can still be recognized by old versions of Git.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
“%<” as an alternative scissors mark.
This feature is only meant to support old habits. Discourage new use
of the percent-based version by only documenting the 8< symbol so new
users’ perforations can still be recognized by old versions of Git.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mailinfo.c | patch | blob | history |
diff --git a/builtin/mailinfo.c b/builtin/mailinfo.c
index ce2ef6bede40fde8823336bc85762bd3e7cd4760..4a9729b9b388a1e589e9250d8157e723c68140de 100644 (file)
--- a/builtin/mailinfo.c
+++ b/builtin/mailinfo.c
continue;
}
if (i + 1 < len &&
- (!memcmp(buf + i, ">8", 2) || !memcmp(buf + i, "8<", 2))) {
+ (!memcmp(buf + i, ">8", 2) || !memcmp(buf + i, "8<", 2) ||
+ !memcmp(buf + i, ">%", 2) || !memcmp(buf + i, "%<", 2))) {
in_perforation = 1;
perforation += 2;
scissors += 2;