Commit 6c1db1b
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 0ecd180 commit 6c1db1b
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1771 | 1771 | | |
1772 | 1772 | | |
1773 | 1773 | | |
1774 | | - | |
1775 | | - | |
| 1774 | + | |
1776 | 1775 | | |
1777 | 1776 | | |
1778 | 1777 | | |
| |||
1781 | 1780 | | |
1782 | 1781 | | |
1783 | 1782 | | |
1784 | | - | |
1785 | | - | |
| 1783 | + | |
1786 | 1784 | | |
1787 | 1785 | | |
1788 | | - | |
1789 | | - | |
| 1786 | + | |
1790 | 1787 | | |
1791 | 1788 | | |
1792 | 1789 | | |
1793 | | - | |
1794 | | - | |
| 1790 | + | |
1795 | 1791 | | |
1796 | 1792 | | |
1797 | 1793 | | |
| |||
0 commit comments