aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-05 13:30:41 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-05 13:37:18 -0800
commitc045e93ce5e68f1eacf42bde45e80b1749fc5c17 (patch)
treed5df1b43ea085654b7cdd4f8ac07cf8868e00be5 /commit.c
parentSync with Git 2.51.2 (diff)
downloadgit-c045e93ce5e68f1eacf42bde45e80b1749fc5c17.tar.gz
git-c045e93ce5e68f1eacf42bde45e80b1749fc5c17.zip
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>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions