summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-05-19 07:45:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-19 07:45:28 (GMT)
commit2cfab6087790ceeb81eb91eeb1300500cfa4c948 (patch)
tree12b60cadde36404d455a1adc53bc626af4704565 /t/helper
parent4ac8371a1ce0df07a2c3389d6acf6c35207a54fa (diff)
parent5c387428f10c27c24d3adb890cd466e2300518fa (diff)
downloadgit-2cfab6087790ceeb81eb91eeb1300500cfa4c948.zip
git-2cfab6087790ceeb81eb91eeb1300500cfa4c948.tar.gz
git-2cfab6087790ceeb81eb91eeb1300500cfa4c948.tar.bz2
Merge branch 'nd/parse-options-aliases'
Attempt to use an abbreviated option in "git clone --recurs" is responded by a request to disambiguate between --recursive and --recurse-submodules, which is bad because these two are synonyms. The parse-options API has been extended to define such synonyms more easily and not produce an unnecessary failure. * nd/parse-options-aliases: parse-options: don't emit "ambiguous option" for aliases
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-parse-options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/helper/test-parse-options.c b/t/helper/test-parse-options.c
index 2232b2f..af82db0 100644
--- a/t/helper/test-parse-options.c
+++ b/t/helper/test-parse-options.c
@@ -149,6 +149,9 @@ int cmd__parse_options(int argc, const char **argv)
OPT_CALLBACK(0, "expect", &expect, "string",
"expected output in the variable dump",
collect_expect),
+ OPT_GROUP("Alias"),
+ OPT_STRING('A', "alias-source", &string, "string", "get a string"),
+ OPT_ALIAS('Z', "alias-target", "alias-source"),
OPT_END(),
};
int i;