diff options
| author | Philippe Blain <levraiphilippeblain@gmail.com> | 2022-10-21 15:13:33 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-10-21 13:51:05 -0700 |
| commit | 2e94339fdc3122fd2f92e865105523bc3866a65f (patch) | |
| tree | ee5834901825a77853ceb98433d15bef7d237626 /commit.c | |
| parent | subtree: use 'git rev-parse --verify [--quiet]' for better error messages (diff) | |
| download | git-2e94339fdc3122fd2f92e865105523bc3866a65f.tar.gz git-2e94339fdc3122fd2f92e865105523bc3866a65f.zip | |
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>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
