]> granicus.if.org Git - git/commit
merge-recursive: be consistent with assert
authorElijah Newren <newren@gmail.com>
Thu, 15 Aug 2019 21:40:30 +0000 (14:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Aug 2019 19:47:20 +0000 (12:47 -0700)
commitd8523ca1b90641be4bddcdfc50fbf3a1be34adae
tree1ceb825bf17d97e42d2638c60a4fefc6e963d4ce
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
merge-recursive: be consistent with assert

In commit 8daec1df03de ("merge-recursive: switch from (oid,mode) pairs
to a diff_filespec", 2019-04-05), an assertion on a->path && b->path
was added for code readability to document that these both needed to be
non-NULL at this point in the code.  However, the subsequent lines also
read o->path, so it should be included in the assert.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c