From: Jonathan Nieder Date: Mon, 14 Oct 2013 18:07:29 +0000 (-0700) Subject: Merge branch 'po/remote-set-head-usage' X-Git-Tag: v1.8.5-rc0~63 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c766e6f429f48e4e6e7b5609779e6cca501c31f6?ds=inline;hp=-c Merge branch 'po/remote-set-head-usage' * po/remote-set-head-usage: remote set-head -h: add long options to synopsis remote doc: document long forms of set-head options --- c766e6f429f48e4e6e7b5609779e6cca501c31f6 diff --combined builtin/remote.c index eaac3e2012,aa008a50a5..4e14891095 --- a/builtin/remote.c +++ b/builtin/remote.c @@@ -12,7 -12,7 +12,7 @@@ static const char * const builtin_remot N_("git remote add [-t ] [-m ] [-f] [--tags|--no-tags] [--mirror=] "), N_("git remote rename "), N_("git remote remove "), - N_("git remote set-head (-a | -d | )"), + N_("git remote set-head (-a | --auto | -d | --delete |)"), N_("git remote [-v | --verbose] show [-n] "), N_("git remote prune [-n | --dry-run] "), N_("git remote [-v | --verbose] update [-p | --prune] [( | )...]"), @@@ -39,7 -39,7 +39,7 @@@ static const char * const builtin_remot }; static const char * const builtin_remote_sethead_usage[] = { - N_("git remote set-head (-a | -d | )"), + N_("git remote set-head (-a | --auto | -d | --delete | )"), NULL }; @@@ -160,7 -160,7 +160,7 @@@ static int add(int argc, const char **a int i; struct option options[] = { - OPT_BOOLEAN('f', "fetch", &fetch, N_("fetch the remote branches")), + OPT_BOOL('f', "fetch", &fetch, N_("fetch the remote branches")), OPT_SET_INT(0, "tags", &fetch_tags, N_("import all tags and associated objects when fetching"), TAGS_SET), @@@ -1088,7 -1088,7 +1088,7 @@@ static int show(int argc, const char ** { int no_query = 0, result = 0, query_flag = 0; struct option options[] = { - OPT_BOOLEAN('n', NULL, &no_query, N_("do not query remotes")), + OPT_BOOL('n', NULL, &no_query, N_("do not query remotes")), OPT_END() }; struct ref_states states; @@@ -1195,10 -1195,10 +1195,10 @@@ static int set_head(int argc, const cha char *head_name = NULL; struct option options[] = { - OPT_BOOLEAN('a', "auto", &opt_a, - N_("set refs/remotes//HEAD according to remote")), - OPT_BOOLEAN('d', "delete", &opt_d, - N_("delete refs/remotes//HEAD")), + OPT_BOOL('a', "auto", &opt_a, + N_("set refs/remotes//HEAD according to remote")), + OPT_BOOL('d', "delete", &opt_d, + N_("delete refs/remotes//HEAD")), OPT_END() }; argc = parse_options(argc, argv, NULL, options, builtin_remote_sethead_usage, @@@ -1317,8 -1317,8 +1317,8 @@@ static int update(int argc, const char { int i, prune = 0; struct option options[] = { - OPT_BOOLEAN('p', "prune", &prune, - N_("prune remotes after fetching")), + OPT_BOOL('p', "prune", &prune, + N_("prune remotes after fetching")), OPT_END() }; const char **fetch_argv; @@@ -1404,7 -1404,7 +1404,7 @@@ static int set_branches(int argc, cons { int add_mode = 0; struct option options[] = { - OPT_BOOLEAN('\0', "add", &add_mode, N_("add branch")), + OPT_BOOL('\0', "add", &add_mode, N_("add branch")), OPT_END() }; @@@ -1432,11 -1432,11 +1432,11 @@@ static int set_url(int argc, const cha int urlset_nr; struct strbuf name_buf = STRBUF_INIT; struct option options[] = { - OPT_BOOLEAN('\0', "push", &push_mode, - N_("manipulate push URLs")), - OPT_BOOLEAN('\0', "add", &add_mode, - N_("add URL")), - OPT_BOOLEAN('\0', "delete", &delete_mode, + OPT_BOOL('\0', "push", &push_mode, + N_("manipulate push URLs")), + OPT_BOOL('\0', "add", &add_mode, + N_("add URL")), + OPT_BOOL('\0', "delete", &delete_mode, N_("delete URLs")), OPT_END() };