summaryrefslogtreecommitdiff
path: root/t/t5100/quoted-string.expect
diff options
context:
space:
mode:
authorLibravatar Kevin Daudt <me@ikke.info>2016-09-28 21:52:32 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-09-28 13:21:18 -0700
commitf357e5de31595c28a303aaf5443c26f492441a6f (patch)
treea6fd4945bc727bd523b17e7562ec989bc025e8bb /t/t5100/quoted-string.expect
parentt5100-mailinfo: replace common path prefix with variable (diff)
downloadtgif-f357e5de31595c28a303aaf5443c26f492441a6f.tar.xz
mailinfo: unescape quoted-pair in header fields
rfc2822 has provisions for quoted strings in structured header fields, but also allows for escaping these with so-called quoted-pairs. The only thing git currently does is removing exterior quotes, but quotes within are left alone. Remove exterior quotes and remove escape characters so that they don't show up in the author field. Signed-off-by: Kevin Daudt <me@ikke.info> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/quoted-string.expect')
-rw-r--r--t/t5100/quoted-string.expect5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t5100/quoted-string.expect b/t/t5100/quoted-string.expect
new file mode 100644
index 0000000000..cab1bcebf9
--- /dev/null
+++ b/t/t5100/quoted-string.expect
@@ -0,0 +1,5 @@
+Author: Author "The Author" Name
+Email: somebody@example.com
+Subject: testing quoted-pair
+Date: Sun, 25 May 2008 00:38:18 -0700
+