commit-reach: move walk methods from commit.c
commit5227c385667cadd3b34668329016755181fa98ea
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 20 Jul 2018 16:33:02 +0000 (20 16:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 22:38:54 +0000 (20 15:38 -0700)
treec6c414608bd5f050dd837be44444087d5ad20c16
parentdade47c06cf849b0ca180a8e6383b55ea6f75812
commit-reach: move walk methods from commit.c

There are several commit walks in the codebase. Group them together into
a new commit-reach.c file and corresponding header. After we group these
walks into one place, we can reduce duplicate logic by calling
equivalent methods.

The method declarations in commit.h are not touched by this commit and
will be moved in a following commit. Many consumers need to point to
commit-reach.h and that would bloat this commit.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
commit-reach.c [new file with mode: 0644]
commit-reach.h [new file with mode: 0644]
commit.c
object.h