]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'rs/parse-options-negation-help'
authorJunio C Hamano <gitster@pobox.com>
Fri, 25 Aug 2023 17:37:37 +0000 (10:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Aug 2023 17:37:37 +0000 (10:37 -0700)
"git cmd -h" learned to signal which options can be negated by
listing such options like "--[no-]opt".

* rs/parse-options-negation-help:
  parse-options: simplify usage_padding()
  parse-options: no --[no-]no-...
  parse-options: factor out usage_indent() and usage_padding()
  parse-options: show negatability of options in short help
  t1502: test option negation
  t1502: move optionspec help output to a file
  t1502, docs: disallow --no-help
  subtree: disallow --no-{help,quiet,debug,branch,message}

1  2 
parse-options.c

diff --cc parse-options.c
Simple merge