aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-20 15:55:03 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-20 15:55:03 -0700
commit96c2abea02ac36337eafcbd1cd1e208257b2dbf9 (patch)
tree8e166bcbacc8c58909cf2f2caf63e408f575d66f /builtin
parentee70fb8e4a66eebb1799e3f28fe31ed8e48c84cf (diff)
parentd5b4d80d1cc056d5cc4a18f457133b2de8fc685a (diff)
downloadgit-96c2abea02ac36337eafcbd1cd1e208257b2dbf9.tar.gz
git-96c2abea02ac36337eafcbd1cd1e208257b2dbf9.tar.xz
Merge branch 'jc/mailinfo-RE' into maint
* jc/mailinfo-RE: mailinfo: strip "RE: " prefix
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mailinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/mailinfo.c b/builtin/mailinfo.c
index eaf9e157a..18895ee4d 100644
--- a/builtin/mailinfo.c
+++ b/builtin/mailinfo.c
@@ -232,7 +232,9 @@ static void cleanup_subject(struct strbuf *subject)
case 'r': case 'R':
if (subject->len <= at + 3)
break;
- if (!memcmp(subject->buf + at + 1, "e:", 2)) {
+ if ((subject->buf[at + 1] == 'e' ||
+ subject->buf[at + 1] == 'E') &&
+ subject->buf[at + 2] == ':') {
strbuf_remove(subject, at, 3);
continue;
}