From: Takuya N via GitGitGadget Date: Wed, 04 Mar 2020 12:38:34 GMT Subject: [PATCH v2] doc: use 'rev' instead of 'commit' for merge-base arguments Message-ID: In-Reply-To: From: Takuya Noguchi The notation can be misunderstandable only for commit SHA1, but merge-base accepts any commit references. Like rev-parse, the name of arguments should be instead of . Signed-off-by: Takuya Noguchi --- doc: use 'rev' instead of 'commit' for merge-base arguments The notation can be misunderstandable only for commit SHA1, but merge-base accepts any commit references. Like rev-parse, the name of arguments should be instead of . Changes since v1: * Use rev instead of ref, not commit-ish which is less used than rev through the document. Signed-off-by: Takuya Noguchi takninnovationresearch@gmail.com [takninnovationresearch@gmail.com] Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-719%2Ftnir%2Fmerge-base-supporting-refs-v2 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-719/tnir/merge-base-supporting-refs-v2 Pull-Request: https://github.com/git/git/pull/719 Range-diff vs v1: 1: 9c83cf1c620 ! 1: 6e2157da4b1 doc: use 'ref' instead of 'commit' for merge-base arguments @@ -1,10 +1,10 @@ Author: Takuya Noguchi - doc: use 'ref' instead of 'commit' for merge-base arguments + doc: use 'rev' instead of 'commit' for merge-base arguments The notation can be misunderstandable only for commit SHA1, - but merge-base accepts any commit references. Like reflog, the name of - arguments should be instead of . + but merge-base accepts any commit references. Like rev-parse, the name + of arguments should be instead of . Signed-off-by: Takuya Noguchi @@ -20,11 +20,11 @@ -'git merge-base' --is-ancestor -'git merge-base' --independent ... -'git merge-base' --fork-point [] -+'git merge-base' [-a|--all] ... -+'git merge-base' [-a|--all] --octopus ... -+'git merge-base' --is-ancestor -+'git merge-base' --independent ... -+'git merge-base' --fork-point [] ++'git merge-base' [-a|--all] ... ++'git merge-base' [-a|--all] --octopus ... ++'git merge-base' --is-ancestor ++'git merge-base' --independent ... ++'git merge-base' --fork-point [] DESCRIPTION ----------- @@ -41,11 +41,11 @@ - N_("git merge-base --independent ..."), - N_("git merge-base --is-ancestor "), - N_("git merge-base --fork-point []"), -+ N_("git merge-base [-a | --all] ..."), -+ N_("git merge-base [-a | --all] --octopus ..."), -+ N_("git merge-base --independent ..."), -+ N_("git merge-base --is-ancestor "), -+ N_("git merge-base --fork-point []"), ++ N_("git merge-base [-a | --all] ..."), ++ N_("git merge-base [-a | --all] --octopus ..."), ++ N_("git merge-base --independent ..."), ++ N_("git merge-base --is-ancestor "), ++ N_("git merge-base --fork-point []"), NULL }; @@ -54,7 +54,7 @@ N_("is the first one ancestor of the other?"), 'a'), OPT_CMDMODE(0, "fork-point", &cmdmode, - N_("find where forked from reflog of "), 'f'), -+ N_("find where forked from reflog of "), 'f'), ++ N_("find where forked from reflog of "), 'f'), OPT_END() }; Documentation/git-merge-base.txt | 10 +++++----- builtin/merge-base.c | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/git-merge-base.txt b/Documentation/git-merge-base.txt index 2d944e0851f..60438a00871 100644 --- a/Documentation/git-merge-base.txt +++ b/Documentation/git-merge-base.txt @@ -9,11 +9,11 @@ git-merge-base - Find as good common ancestors as possible for a merge SYNOPSIS -------- [verse] -'git merge-base' [-a|--all] ... -'git merge-base' [-a|--all] --octopus ... -'git merge-base' --is-ancestor -'git merge-base' --independent ... -'git merge-base' --fork-point [] +'git merge-base' [-a|--all] ... +'git merge-base' [-a|--all] --octopus ... +'git merge-base' --is-ancestor +'git merge-base' --independent ... +'git merge-base' --fork-point [] DESCRIPTION ----------- diff --git a/builtin/merge-base.c b/builtin/merge-base.c index e3f8da13b69..e03f2269e88 100644 --- a/builtin/merge-base.c +++ b/builtin/merge-base.c @@ -29,11 +29,11 @@ static int show_merge_base(struct commit **rev, int rev_nr, int show_all) } static const char * const merge_base_usage[] = { - N_("git merge-base [-a | --all] ..."), - N_("git merge-base [-a | --all] --octopus ..."), - N_("git merge-base --independent ..."), - N_("git merge-base --is-ancestor "), - N_("git merge-base --fork-point []"), + N_("git merge-base [-a | --all] ..."), + N_("git merge-base [-a | --all] --octopus ..."), + N_("git merge-base --independent ..."), + N_("git merge-base --is-ancestor "), + N_("git merge-base --fork-point []"), NULL }; @@ -158,7 +158,7 @@ int cmd_merge_base(int argc, const char **argv, const char *prefix) OPT_CMDMODE(0, "is-ancestor", &cmdmode, N_("is the first one ancestor of the other?"), 'a'), OPT_CMDMODE(0, "fork-point", &cmdmode, - N_("find where forked from reflog of "), 'f'), + N_("find where forked from reflog of "), 'f'), OPT_END() }; base-commit: 2f268890c2cd2f115424936bbee27f8269080e5e -- gitgitgadget