CodingGuidelines: allow declaring variables in for loops
commit82dd01d81b1babf6714435b80683e756de1a4d64
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 10 Oct 2022 20:37:58 +0000 (10 13:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2022 20:41:11 +0000 (10 13:41 -0700)
tree043d829a2d39e49204c89f75e2ef67074fb3cf65
parent442c27dde784049a2c0f8815ac5030817123386c
CodingGuidelines: allow declaring variables in for loops

Since 44ba10d6712 (revision: use C99 declaration of variable in for()
loop, 2021-11-14) released with v2.35.0 we've had a variable declared
with in a for loop.

Since then we've had inadvertent follow-ups to that with at least
cb2607759e2 (merge-ort: store more specific conflict information,
2022-06-18) released with v2.38.0.

As November 2022 is within the window of this upcoming release,
let's update the guideline to allow this.  We can have the promised
"revisit" discussion while this patch cooks, and drop it if it turns
out that it is still premature, which is not expected to happen at
this moment.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/CodingGuidelines
revision.c