diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-27 01:55:20 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-27 01:55:20 +0300 |
commit | 1ad7c0f6896bf0fa0b1b4965d7395b7ba2695fdc (patch) | |
tree | 8ac018758924a1b437895974529dccbe8bae664c /builtin/am.c | |
parent | 0884726b43e356d5710db3d516c788fd0b95a57c (diff) | |
parent | bed4452468cc564adc5ab99dfdbee0eb0f7cfb97 (diff) |
Merge branch 'tk/stripspace'
The internal stripspace() function has been moved to where it
logically belongs to, i.e. strbuf API, and the command line parser
of "git stripspace" has been updated to use the parse_options API.
* tk/stripspace:
stripspace: use parse-options for command-line parsing
strbuf: make stripspace() part of strbuf
Diffstat (limited to 'builtin/am.c')
-rw-r--r-- | builtin/am.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c index fc6d3d21aa..4e396c8321 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -1343,7 +1343,7 @@ static int parse_mail(struct am_state *state, const char *mail) strbuf_addstr(&msg, "\n\n"); if (strbuf_read_file(&msg, am_path(state, "msg"), 0) < 0) die_errno(_("could not read '%s'"), am_path(state, "msg")); - stripspace(&msg, 0); + strbuf_stripspace(&msg, 0); if (state->signoff) am_signoff(&msg); |