Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-11-10 13:01:19 +0300
committerJunio C Hamano <gitster@pobox.com>2023-11-11 03:21:00 +0300
commit88983946fa00ebea8b346acab46e19bceeed427d (patch)
tree1587e3d1de006c01609c5e65c517d8af1138d5d2 /object-store-ll.h
parent13420028e5b119d27277d521f4d267212c5ca21c (diff)
contrib/subtree: stop using `-o` to test for number of args
Functions in git-subtree.sh all assert that they are being passed the correct number of arguments. In cases where we accept a variable number of arguments we assert this via a single call to `test` with `-o`, which is discouraged by our coding guidelines. Convert these cases to stop doing so. This requires us to decompose assertions of the style `assert test $# = 2 -o $# = 3` into two calls because we have no easy way to logically chain statements passed to the assert function. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-store-ll.h')
0 files changed, 0 insertions, 0 deletions