diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-05-05 14:54:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-05 14:54:27 -0700 |
commit | 66527162008d2792c0000096dd7a41d6d5797df3 (patch) | |
tree | 6eb0708de90242185ee953963ff17086e507ce8f /builtin/clean.c | |
parent | Merge branch 'jk/test-fail-prereqs-fix' (diff) | |
parent | Use OPT_CALLBACK and OPT_CALLBACK_F (diff) | |
download | tgif-66527162008d2792c0000096dd7a41d6d5797df3.tar.xz |
Merge branch 'dl/opt-callback-cleanup'
Code cleanup.
* dl/opt-callback-cleanup:
Use OPT_CALLBACK and OPT_CALLBACK_F
Diffstat (limited to 'builtin/clean.c')
-rw-r--r-- | builtin/clean.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/clean.c b/builtin/clean.c index f14c21b863..4ca12bc0c0 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -906,8 +906,8 @@ int cmd_clean(int argc, const char **argv, const char *prefix) OPT_BOOL('i', "interactive", &interactive, N_("interactive cleaning")), OPT_BOOL('d', NULL, &remove_directories, N_("remove whole directories")), - { OPTION_CALLBACK, 'e', "exclude", &exclude_list, N_("pattern"), - N_("add <pattern> to ignore rules"), PARSE_OPT_NONEG, exclude_cb }, + OPT_CALLBACK_F('e', "exclude", &exclude_list, N_("pattern"), + N_("add <pattern> to ignore rules"), PARSE_OPT_NONEG, exclude_cb), OPT_BOOL('x', NULL, &ignored, N_("remove ignored files, too")), OPT_BOOL('X', NULL, &ignored_only, N_("remove only ignored files")), |