summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-01 06:06:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-01 06:06:38 (GMT)
commite1149fd7d95e3b63f56d4360e135428fc3f7eb82 (patch)
tree21a585696e84b23bdc087ae87e85278c1f22b754 /builtin/fetch.c
parent2bd108ff65031b79d191cfa491fa676ca67e7788 (diff)
parent3e4a67b47d020c8c61d8a762d1903f5288e94778 (diff)
downloadgit-e1149fd7d95e3b63f56d4360e135428fc3f7eb82.zip
git-e1149fd7d95e3b63f56d4360e135428fc3f7eb82.tar.gz
git-e1149fd7d95e3b63f56d4360e135428fc3f7eb82.tar.bz2
Merge branch 'nd/use-opt-int-set-f'
Code simplification. * nd/use-opt-int-set-f: Use OPT_SET_INT_F() for cmdline option specification
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index c0d8ad1..ea5b966 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -155,9 +155,9 @@ static struct option builtin_fetch_options[] = {
N_("deepen history of shallow clone, excluding rev")),
OPT_INTEGER(0, "deepen", &deepen_relative,
N_("deepen history of shallow clone")),
- { OPTION_SET_INT, 0, "unshallow", &unshallow, NULL,
- N_("convert to a complete repository"),
- PARSE_OPT_NONEG | PARSE_OPT_NOARG, NULL, 1 },
+ OPT_SET_INT_F(0, "unshallow", &unshallow,
+ N_("convert to a complete repository"),
+ 1, PARSE_OPT_NONEG),
{ OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, N_("dir"),
N_("prepend this to submodule path output"), PARSE_OPT_HIDDEN },
{ OPTION_CALLBACK, 0, "recurse-submodules-default",