Changes since v2:
* beef up tests, including accounting for the trailing whitespace
omission in pretty output but still accepting and preserving
trailing whitespace in mailsplit.
* indicate disabling variable interpolation in heredoc (but
using variable interpolation as needed for trailing space
in tests).
* use "git grep" for "-A<NUM>" for portability
* avoid the use of regexp for matching /^From / and /^>+From /
Thanks to Eric Sunshine and Junio for helping with the first round.
v1 started at http://mid.gmane.org/20160530232142.21098-1-e@80x24.org
The following changes since commit 6326f199252a1a5fbdea105473f8305d850cdd87:
Almost ready for 2.9-rc2 (2016-06-03 14:38:35 -0700)
are available in the git repository at:
git://bogomips.org/git-svn.git mboxrd-v2
for you to fetch changes up to 1ab223c4f7b8d6cc246f873795d89ac97da84ae1:
am: support --patch-format=mboxrd (2016-06-05 04:16:57 +0000)
----------------------------------------------------------------
Eric Wong (3):
pretty: support "mboxrd" output format
mailsplit: support unescaping mboxrd messages
am: support --patch-format=mboxrd Documentation/git-am.txt | 3 ++-
Documentation/git-mailsplit.txt | 7 ++++++-
builtin/am.c | 14 +++++++++++---
builtin/log.c | 2 +-
builtin/mailsplit.c | 18 ++++++++++++++++++
commit.h | 6 ++++++
log-tree.c | 4 ++--
pretty.c | 33 +++++++++++++++++++++++++--------
t/t4014-format-patch.sh | 41 +++++++++++++++++++++++++++++++++++++++++
t/t4150-am.sh | 20 ++++++++++++++++++++
t/t5100-mailinfo.sh | 31 +++++++++++++++++++++++++++++++
t/t5100/0001mboxrd | 4 ++++
t/t5100/0002mboxrd | 5 +++++
t/t5100/sample.mboxrd | 19 +++++++++++++++++++
14 files changed, 191 insertions(+), 16 deletions(-)
create mode 100644 t/t5100/0001mboxrd
create mode 100644 t/t5100/0002mboxrd
create mode 100644 t/t5100/sample.mboxrd