]> git.99rst.org Git - git.git/commit
subtree: disallow --no-{help,quiet,debug,branch,message}
authorRené Scharfe <redacted>
Sat, 5 Aug 2023 14:37:40 +0000 (16:37 +0200)
committerJunio C Hamano <redacted>
Mon, 7 Aug 2023 00:16:49 +0000 (17:16 -0700)
commitd716512870317692129b2b4d706a82b393ffbe6e
tree647cba3f0c5c2f9c60c580a8590780f16d04e655
parentac83bc5054c2ac489166072334b4147ce6d0fccb
subtree: disallow --no-{help,quiet,debug,branch,message}

"git subtree" only handles the negated variant of the options annotate,
prefix, onto, rejoin, ignore-joins and squash explicitly.  help is
handled by "git rev-parse --parseopt" implicitly, but not its negated
form.  Disable negation for it and the for the rest of the options to
get a helpful error message when trying them.

Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/subtree/git-subtree.sh
git clone https://git.99rst.org/PROJECT