]> git.ipfire.org Git - thirdparty/git.git/commit
git-p4: normalize indentation of lines in conditionals
authorJoel Holdsworth <jholdsworth@nvidia.com>
Fri, 1 Apr 2022 14:24:59 +0000 (15:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2022 20:15:44 +0000 (13:15 -0700)
commit7a3e83d0bd1d8fe004cd2f3dd4bc03bc8ca6fe9e
treecd44a5a73630ff717820e06e0313283c524435d7
parent6febb9f84307fab60af6873258006d98d97be87f
git-p4: normalize indentation of lines in conditionals

PEP8 recommends that when wrapping the arguments of conditional
statements, an extra level of indentation should be added to distinguish
arguments from the body of the statement.

This guideline is described here:
https://www.python.org/dev/peps/pep-0008/#indentation

This patch either adds the indentation, or removes unnecessary wrapping.

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py