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 /parse-options.h | |
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 'parse-options.h')
-rw-r--r-- | parse-options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h index 3dd3a94f22..ae8647d893 100644 --- a/parse-options.h +++ b/parse-options.h @@ -206,6 +206,7 @@ extern int parse_opt_tertiary(const struct option *, const char *, int); { OPTION_CALLBACK, 'q', "quiet", (var), NULL, "be more quiet", \ PARSE_OPT_NOARG, &parse_opt_verbosity_cb, 0 } #define OPT__DRY_RUN(var, h) OPT_BOOLEAN('n', "dry-run", (var), (h)) +#define OPT__FORCE(var, h) OPT_BOOLEAN('f', "force", (var), (h)) #define OPT__ABBREV(var) \ { OPTION_CALLBACK, 0, "abbrev", (var), "n", \ "use <n> digits to display SHA-1s", \ |