]> git.ipfire.org Git - thirdparty/git.git/commit
line-log: simplify condition checking for merge commits
authorSZEDER Gábor <szeder.dev@gmail.com>
Sun, 24 Aug 2025 19:06:44 +0000 (21:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Aug 2025 15:30:27 +0000 (08:30 -0700)
commit0a15bb634cf005a0266ee1108ac31aa75649a61c
tree28c6f1003f8d36b90d490a0ee58fb3c8cca91175
parent62e4ef85fbc5574fd80caababbf41bd33f53a46d
line-log: simplify condition checking for merge commits

In process_ranges_arbitrary_commit() the condition deciding whether
the given commit is not a merge, i.e. that it doesn't have more than
one parent, is head-scratchingly backwards, flip it.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
line-log.c