Re: [PATCH v2 4/9] Export the discover_git_directory() function

2017-03-03 Thread Johannes Schindelin
Hi Peff, On Thu, 2 Mar 2017, Jeff King wrote: > On Fri, Mar 03, 2017 at 03:04:15AM +0100, Johannes Schindelin wrote: > > > diff --git a/cache.h b/cache.h > > index 80b6372cf76..a104b76c02e 100644 > > --- a/cache.h > > +++ b/cache.h > > @@ -518,6 +518,7 @@ extern void set_git_work_tree(const

Re: [PATCH v2 4/9] Export the discover_git_directory() function

2017-03-03 Thread Jeff King
On Fri, Mar 03, 2017 at 03:04:15AM +0100, Johannes Schindelin wrote: > The function we introduced earlier needs to return both the path to the > .git/ directory as well as the "cd-up" path to allow > setup_git_directory() to retain its previous behavior as if it changed > the current working