diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2010-11-08 19:01:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-15 10:04:43 -0800 |
commit | 76946b76fe3d26507d61cae97aa0676fad24ed92 (patch) | |
tree | cb637a3012a3b7f5f448ff660106ba1e2595da09 /builtin/clean.c | |
parent | d52ee6e6131f65bb4360743ebea2e7b400b544e4 (diff) | |
download | git-76946b76fe3d26507d61cae97aa0676fad24ed92.tar.gz |
add OPT__FORCE
Add OPT__FORCE as a helper macro in the same spirit as OPT__VERBOSE
et.al. to simplify defining -f/--force options.
Signed-off-by: Rene Scharfe <rene.scharfe@lstfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clean.c')
-rw-r--r-- | builtin/clean.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clean.c b/builtin/clean.c index 449d2a3237..9146bf3c1c 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -50,7 +50,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix) struct option options[] = { OPT__QUIET(&quiet, "be quiet"), OPT__DRY_RUN(&show_only, "dry run"), - OPT_BOOLEAN('f', "force", &force, "force"), + OPT__FORCE(&force, "force"), OPT_BOOLEAN('d', NULL, &remove_directories, "remove whole directories"), { OPTION_CALLBACK, 'e', "exclude", &exclude_list, "pattern", |