[PATCH] send-email: extract email-parsing code into a subroutine

2017-12-02 Thread Payre Nathan
From: Nathan Payre The existing code mixes parsing of email header with regular expression and actual code. Extract the parsing code into a new subroutine 'parse_header_line()'. This improves the code readability and make parse_header_line reusable in other place.

[PATCH 0/2] New send-email option --quote-email

2017-10-30 Thread Payre Nathan
Those patches implements a new --quote-email= option. Typical use case: the user receives a bug report by email and replies with a patch. Before this patch, to make a proper reply, the user had to perform several steps manually using "git send-email": * Add --in-reply-to= to the command-line

[PATCH 2/2] send-email: quote-email quotes the message body

2017-10-30 Thread Payre Nathan
From: Tom Russello --- Documentation/git-send-email.txt | 4 +- git-send-email.perl | 80 ++-- t/t9001-send-email.sh| 19 +- 3 files changed, 97 insertions(+), 6 deletions(-) diff --git

[PATCH 1/2] quote-email populates the fields

2017-10-30 Thread Payre Nathan
From: Tom Russello --- Documentation/git-send-email.txt | 3 + git-send-email.perl | 70 ++- t/t9001-send-email.sh| 117 +-- 3 files changed, 147 insertions(+), 43 deletions(-)

[PATCH v3] Documentation/git-config.txt: reword missleading sentence

2017-10-18 Thread PAYRE NATHAN p1508475
Change the word "bla" to "section.variable", "bla" is a placeholder for a variable name and it wasn't clear for everyone. This change clarify it. Change the appearance of 'git config section.variable {tilde}/' to `git config section.variable ~/` to harmonize it with the rest of the file, this is

[PATCH] Documentation/git-config.txt: reword missleading sentence

2017-10-05 Thread PAYRE NATHAN p1508475
Change the word "bla" to "section.variable" to make it clear that it's a placeholder for a variable name. See discussion at: https://public-inbox.org/git/20171002061303.horde.sl92grzcqtrv9oqkbfpe...@crashcourse.ca/ Noticed-by: rpj...@crashcourse.ca --- Documentation/git-config.txt | 4 ++-- 1