]> git.ipfire.org Git - thirdparty/git.git/commit - commit.h
commit: implement commit_list_contains()
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 8 Dec 2020 22:04:13 +0000 (17:04 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Dec 2020 22:48:16 +0000 (14:48 -0800)
commit597b2c39af9ee65496591448715588b711e91947
treeb280b25ab8ae1e1f1460cd7770b543dd2ecdf6c3
parented03a58b655f661ef6f9efd8816efe0c8cf07fa0
commit: implement commit_list_contains()

It can be helpful to check if a commit_list contains a commit. Use
pointer equality, assuming lookup_commit() was used.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
commit.h