]> git.ipfire.org Git - thirdparty/git.git/commit
bisect--helper: make the order consistently `argc, argv`
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 12 Jan 2023 15:19:10 +0000 (16:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jan 2023 22:17:13 +0000 (14:17 -0800)
commit6f977922853d7d1d99dc07f2f33ed0af54148834
tree19533cf3a3b24c8fd970ee60009918e8944a86ca
parent7a8d7aaa47d952f255f29528359ee5e4edb7c6d2
bisect--helper: make the order consistently `argc, argv`

In C, the natural order is for `argc` to come before `argv` by virtue of
the `main()` function declaring the parameters in precisely that order.

It is confusing & distracting, then, when readers familiar with the C
language read code where that order is switched around.

Let's just change the order and avoid that type of developer friction.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bisect.c