summaryrefslogtreecommitdiff
path: root/builtin/ls-files.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-06-01 15:06:38 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-01 15:06:38 +0900
commite1149fd7d95e3b63f56d4360e135428fc3f7eb82 (patch)
tree21a585696e84b23bdc087ae87e85278c1f22b754 /builtin/ls-files.c
parentMerge branch 'pa/import-tars-long-names' (diff)
parentUse OPT_SET_INT_F() for cmdline option specification (diff)
downloadtgif-e1149fd7d95e3b63f56d4360e135428fc3f7eb82.tar.xz
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/ls-files.c')
-rw-r--r--builtin/ls-files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index 967b2b3380..88bb2019ad 100644
--- a/builtin/ls-files.c
+++ b/builtin/ls-files.c
@@ -556,9 +556,9 @@ int cmd_ls_files(int argc, const char **argv, const char *cmd_prefix)
{ OPTION_CALLBACK, 0, "exclude-standard", &dir, NULL,
N_("add the standard git exclusions"),
PARSE_OPT_NOARG, option_parse_exclude_standard },
- { OPTION_SET_INT, 0, "full-name", &prefix_len, NULL,
- N_("make the output relative to the project top directory"),
- PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL },
+ OPT_SET_INT_F(0, "full-name", &prefix_len,
+ N_("make the output relative to the project top directory"),
+ 0, PARSE_OPT_NONEG),
OPT_BOOL(0, "recurse-submodules", &recurse_submodules,
N_("recurse through submodules")),
OPT_BOOL(0, "error-unmatch", &error_unmatch,