From: Junio C Hamano Date: Tue, 3 Nov 2015 23:32:37 +0000 (-0800) Subject: Merge branch 'rt/placeholder-in-usage' into maint X-Git-Tag: v2.6.3~21 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/14f905caf2da593a65a2be51ff4d219e5cc3de04?ds=inline;hp=-c Merge branch 'rt/placeholder-in-usage' into maint A couple of commands still showed "[options]" in their usage string to note where options should come on their command line, but we spell that "[]" in most places these days. * rt/placeholder-in-usage: am, credential-cache: add angle brackets to usage string --- 14f905caf2da593a65a2be51ff4d219e5cc3de04 diff --combined builtin/am.c index 7b8e11eeaa,98992cd013..98e29e044e --- a/builtin/am.c +++ b/builtin/am.c @@@ -1343,7 -1343,7 +1343,7 @@@ static int parse_mail(struct am_state * 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); @@@ -2208,17 -2208,6 +2208,17 @@@ enum resume_mode RESUME_ABORT }; +static int git_am_config(const char *k, const char *v, void *cb) +{ + int status; + + status = git_gpg_config(k, v, NULL); + if (status) + return status; + + return git_default_config(k, v, NULL); +} + int cmd_am(int argc, const char **argv, const char *prefix) { struct am_state state; @@@ -2229,8 -2218,8 +2229,8 @@@ int in_progress; const char * const usage[] = { - N_("git am [options] [(|)...]"), - N_("git am [options] (--continue | --skip | --abort)"), + N_("git am [] [(|)...]"), + N_("git am [] (--continue | --skip | --abort)"), NULL }; @@@ -2319,7 -2308,7 +2319,7 @@@ OPT_END() }; - git_config(git_default_config, NULL); + git_config(git_am_config, NULL); am_state_init(&state, git_path("rebase-apply"));