]> git.ipfire.org Git - thirdparty/git.git/commit
whitespace: correct bit assignment comments
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Nov 2025 22:02:47 +0000 (14:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Nov 2025 22:04:04 +0000 (14:04 -0800)
commit8d4725e48ef29bd857e21e689411878b6eb4df92
treed5df1b43ea085654b7cdd4f8ac07cf8868e00be5
parent419c72cb8ada252b260efc38ff91fe201de7c8c3
whitespace: correct bit assignment comments

A comment in diff.c claimed that bits up to 12th (counting from 0th)
are whitespace rules, and 13th thru 15th are for new/old/context,
but it turns out it was miscounting.  Correct them, and clarify
where the whitespace rule bits come from in the comment.  Extend bit
assignment comments to cover bits used for color-moved, which
weren't described.

Also update the way these bit constants are defined to use (1 << N)
notation, instead of octal constants, as it tends to make it easier
to notice a breakage like this.

Sprinkle a few blank lines between logically distinct groups of CPP
macro definitions to make them easier to read.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
diff.h
ws.h