diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-07-18 11:22:40 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-07-18 12:19:31 -0700 |
| commit | 947ebd62a0cc830b00f106f6fa5f0715674990a2 (patch) | |
| tree | c192f58a199a8f4d33215f489d4b6e88ed3f734a /commit.c | |
| parent | Merge branch 'jk/redact-h2h3-headers-fix' into maint-2.41 (diff) | |
| download | git-947ebd62a0cc830b00f106f6fa5f0715674990a2.tar.gz git-947ebd62a0cc830b00f106f6fa5f0715674990a2.zip | |
am: simplify parsing of "--[no-]keep-cr"
Command line options "--keep-cr" and its negation trigger
OPT_SET_INT_F(PARSE_OPT_NONEG) to set a variable to 1 and 0
respectively. Using OPT_SET_INT() to implement the positive variant
that sets the variable to 1 without specifying PARSE_OPT_NONEG gives
us the negative variant to set it to 0 for free.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
