]> git.ipfire.org Git - thirdparty/git.git/commit
subtree: be stricter about validating flags
authorLuke Shumaker <lukeshu@datawire.io>
Tue, 27 Apr 2021 21:17:48 +0000 (15:17 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Apr 2021 07:47:19 +0000 (16:47 +0900)
commit9a3e3ca2ba869f9fef9f8be390ed45457565ccd1
treef706bbc65e766f8fd521522f1ff9c5d67be4d705
parent49470cd445166fbe778218c7618ea8ee78ca7d00
subtree: be stricter about validating flags

Don't silently ignore a flag that's invalid for a given subcommand.  The
user expected it to do something; we should tell the user that they are
mistaken, instead of surprising the user.

It could be argued that this change might break existing users.  I'd
argue that those existing users are already broken, and they just don't
know it.  Let them know that they're broken.

Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh
contrib/subtree/t/t7900-subtree.sh