]> git.ipfire.org Git - thirdparty/git.git/commit
CodingGuidelines: give deadline for "for (int i = 0; ..."
authorJunio C Hamano <gitster@pobox.com>
Thu, 31 Mar 2022 00:09:16 +0000 (17:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Mar 2022 20:12:26 +0000 (13:12 -0700)
commit6563706568b952d85c050b208b5301303d32810c
treee4eef4559f935aa7b35fbae63ca008e70b5ee0bf
parent4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a
CodingGuidelines: give deadline for "for (int i = 0; ..."

We raised the weather balloon to see if we can allow the construct
in 44ba10d6 (revision: use C99 declaration of variable in for()
loop, 2021-11-14), which was shipped as a part of Git v2.35.
Document that fact in the coding guidelines, and more importantly,
give ourselves a deadline to revisit and update.

Let's declare that we will officially adopt the variable declaration
in the initializaiton part of "for ()" statement this winter, unless
we find that a platform we care about does not grok it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/CodingGuidelines