summaryrefslogtreecommitdiff
path: root/builtin/send-pack.c
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2010-02-25 00:48:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-02-25 03:12:48 (GMT)
commit43a61b841d261fe51ac64b55d654677b0cd93ad9 (patch)
treef38eb3bdbc4cbaa8896090c156923bdd3ac209cd /builtin/send-pack.c
parente73bbd96c6e9ce11a101dac03402d0f718a1bd23 (diff)
downloadgit-43a61b841d261fe51ac64b55d654677b0cd93ad9.zip
git-43a61b841d261fe51ac64b55d654677b0cd93ad9.tar.gz
git-43a61b841d261fe51ac64b55d654677b0cd93ad9.tar.bz2
builtin-notes: Minor (mostly parse_options-related) fixes
Use PARSE_OPT_NONEG to disallow --no-<option> for message, file, reedit-message and reuse-message. for which --no-<option> does not make sense. This also simplifies the code in the option-handling callbacks. Also, use strbuf_addch(... '\n') instead of strbuf_addstr(... "\n") in couple of places. Finally, improve the short-help by dividing the options into two OPT_GROUPs. Suggested-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Johan Herland <johan@herland.net> Acked-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/send-pack.c')
0 files changed, 0 insertions, 0 deletions