author | Thomas Rast <trast@student.ethz.ch> | |
Mon, 16 Jan 2012 10:53:01 +0000 (11:53 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 17 Jan 2012 00:06:57 +0000 (16:06 -0800) | ||
commit | ee2d1cb402a7ccda0028b221f2252801b3cb7eef | |
tree | d2b20ac5795f6a85820a672c397389d5ac6a64d0 | tree | snapshot |
parent | f7e5ea171b693bf5fc88e059d9d4af3753c09143 | commit | diff |
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>
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>
builtin/mailinfo.c | diff | blob | history | |
t/t4150-am.sh | diff | blob | history |