summaryrefslogtreecommitdiff
path: root/t/t4018/cpp-c++-function
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2014-08-12 17:00:45 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-08-13 10:32:12 -0700
commit6c1db1b38886f70165cb9f5822b1a2e99a2c331b (patch)
treee2ffd81a55b070149d91bcc11ef5ae220c67a25c /t/t4018/cpp-c++-function
parentunpack-trees: simplify 'all other failures' case (diff)
downloadtgif-6c1db1b38886f70165cb9f5822b1a2e99a2c331b.tar.xz
unpack-trees: use 'cuddled' style for if-else cascade
Match the predominant style in git by following K&R style for if/else cascades. Documentation/CodingStyle from linux.git explains: Note that the closing brace is empty on a line of its own, _except_ in the cases where it is followed by a continuation of the same statement, ie a "while" in a do-statement or an "else" in an if-statement, like this: if (x == y) { .. } else if (x > y) { ... } else { .... } Rationale: K&R. Also, note that this brace-placement also minimizes the number of empty (or almost empty) lines, without any loss of readability. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/cpp-c++-function')
0 files changed, 0 insertions, 0 deletions