upload-pack: make reachable() more generic
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 20 Jul 2018 16:33:09 +0000 (16:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 22:38:54 +0000 (15:38 -0700)
commitf044bb49add413915d699ca9e3458071dac6c731
tree5965a6c1bb11dda272e2b9a91dcb2101469a52c6
parent920f93ca1c005a81cfb88c87fca18de5e4bde8c5
upload-pack: make reachable() more generic

In anticipation of moving the reachable() method to commit-reach.c,
modify the prototype to be more generic to flags known outside of
upload-pack.c. Also rename 'want' to 'from' to make the statement
more clear outside of the context of haves/wants negotiation.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c