diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-08-03 13:51:19 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-05 11:32:19 -0700 |
commit | d5d09d475440c24016ec52a0bcc8477d9a7b5c71 (patch) | |
tree | a6758a688f3308d4dc4ff75885fe7ce8792c9921 /builtin/hash-object.c | |
parent | 4741edd549decfccc016fa4775b349fe94fdf4e5 (diff) | |
download | git-d5d09d475440c24016ec52a0bcc8477d9a7b5c71.tar.gz |
Replace deprecated OPT_BOOLEAN by OPT_BOOL
This task emerged from b04ba2bb (parse-options: deprecate OPT_BOOLEAN,
2011-09-27). All occurrences of the respective variables have
been reviewed and none of them relied on the counting up mechanism,
but all of them were using the variable as a true boolean.
This patch does not change semantics of any command intentionally.
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/hash-object.c')
-rw-r--r-- | builtin/hash-object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/hash-object.c b/builtin/hash-object.c index 8d184f1a99..4aea5bbd80 100644 --- a/builtin/hash-object.c +++ b/builtin/hash-object.c @@ -70,10 +70,10 @@ static const char *vpath; static const struct option hash_object_options[] = { OPT_STRING('t', NULL, &type, N_("type"), N_("object type")), - OPT_BOOLEAN('w', NULL, &write_object, N_("write the object into the object database")), + OPT_BOOL('w', NULL, &write_object, N_("write the object into the object database")), OPT_BOOLEAN( 0 , "stdin", &hashstdin, N_("read the object from stdin")), - OPT_BOOLEAN( 0 , "stdin-paths", &stdin_paths, N_("read file names from stdin")), - OPT_BOOLEAN( 0 , "no-filters", &no_filters, N_("store file as is without filters")), + OPT_BOOL( 0 , "stdin-paths", &stdin_paths, N_("read file names from stdin")), + OPT_BOOL( 0 , "no-filters", &no_filters, N_("store file as is without filters")), OPT_STRING( 0 , "path", &vpath, N_("file"), N_("process file as it were from this path")), OPT_END() }; |