]> git.ipfire.org Git - thirdparty/git.git/commit - commit-reach.c
commit-reach: prepare get_merge_bases to handle any repo
authorStefan Beller <sbeller@google.com>
Wed, 14 Nov 2018 00:12:55 +0000 (16:12 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Nov 2018 08:22:40 +0000 (17:22 +0900)
commit21a9651ba3fb350f48a53bf885a225bf6b71cac3
tree16609455ca583bc2ee0fd839e35fe8772091939e
parentf28e87f526949c547308c16426cc4607464c5f37
commit-reach: prepare get_merge_bases to handle any repo

Similarly to previous patches, the get_merge_base functions are used
often in the code base, which makes migrating them hard.

Implement the new functions, prefixed with 'repo_' and hide the old
functions behind a wrapper macro.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-reach.c
commit-reach.h
contrib/coccinelle/the_repository.pending.cocci