subtree: add 'die_incompatible_opt' function to reduce duplication
commit2e94339fdc3122fd2f92e865105523bc3866a65f
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Fri, 21 Oct 2022 15:13:33 +0000 (21 15:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2022 20:51:05 +0000 (21 13:51 -0700)
treeee5834901825a77853ceb98433d15bef7d237626
parenta50fcc13dda245b39e63a2052107456e0b7e85f7
subtree: add 'die_incompatible_opt' function to reduce duplication

9a3e3ca2ba (subtree: be stricter about validating flags, 2021-04-27)
added validation code to check that options given to 'git subtree <cmd>'
made sense with the command being used.

Refactor these checks by adding a 'die_incompatible_opt' function to
reduce code duplication.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh