Anonymous committed 0b0b8cd

CodingGuidelines: Add a note to avoid assignments inside if()

Signed-off-by: Miklos Vajna <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 633f43e

Comments (0)

Files changed (1)


    of "else if" statements, it can make sense to add braces to
    single line blocks.
+ - We try to avoid assignments inside if().
  - Try to make your code understandable.  You may put comments
    in, but comments invariably tend to stale out when the code
    they were describing changes.  Often splitting a function