Skip to content

Commit

Permalink
parse-options.h: OPTION_{BIT,SET_INT} do not store pointer to defval
Browse files Browse the repository at this point in the history
When 20d1c65 (parse-options: remove unused OPT_SET_PTR, 2014-03-30)
removed OPT_SET_PTR, the comment in the header that describes what
the option did to defval field was left behind by mistake.  Remove
it.

Signed-off-by: Ivan Ukhov <ivan.ukhov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ivan Ukhov authored and Junio C Hamano committed Mar 30, 2015
1 parent 20d1c65 commit d3c0811
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parse-options.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ typedef int parse_opt_ll_cb(struct parse_opt_ctx_t *ctx,
*
* `defval`::
* default value to fill (*->value) with for PARSE_OPT_OPTARG.
* OPTION_{BIT,SET_INT} store the {mask,integer,pointer} to put in
* the value when met.
* OPTION_{BIT,SET_INT} store the {mask,integer} to put in the value when met.
* CALLBACKS can use it like they want.
*/
struct option {
Expand Down

0 comments on commit d3c0811

Please sign in to comment.