mailinfo: with -b, keep space after [foo]
The logic for the -b mode, where [PATCH] is dropped but [foo] is not, silently ate all spaces after the ]. Fix this by keeping the next isspace() character, if there is any. Being more thorough is pointless, as the later cleanup_space() call will normalize any sequence of whitespace to a single ' '. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
f7e5ea171b
commit
ee2d1cb402
@ -244,7 +244,7 @@ test_expect_success 'am --keep really keeps the subject' '
|
||||
grep "Re: Re: Re: \[PATCH 1/5 v2\] \[foo\] third" actual
|
||||
'
|
||||
|
||||
test_expect_failure 'am --keep-non-patch really keeps the non-patch part' '
|
||||
test_expect_success 'am --keep-non-patch really keeps the non-patch part' '
|
||||
rm -fr .git/rebase-apply &&
|
||||
git reset --hard &&
|
||||
git checkout HEAD^ &&
|
||||
|
Reference in New Issue
Block a user