Re: [PATCH v2 2/2] rev-parse: fix several options when running in a subdirectory

2017-02-17 Thread Johannes Schindelin
Hi Junio, On Fri, 10 Feb 2017, Junio C Hamano wrote: > Johannes Schindelin writes: > > > diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c > > index ff13e59e1db..84af2802f6f 100644 > > --- a/builtin/rev-parse.c > > +++ b/builtin/rev-parse.c > > @@ -545,6 +545,7

Re: [PATCH v2 2/2] rev-parse: fix several options when running in a subdirectory

2017-02-10 Thread Junio C Hamano
Johannes Schindelin writes: > diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c > index ff13e59e1db..84af2802f6f 100644 > --- a/builtin/rev-parse.c > +++ b/builtin/rev-parse.c > @@ -545,6 +545,7 @@ int cmd_rev_parse(int argc, const char **argv, const char >

[PATCH v2 2/2] rev-parse: fix several options when running in a subdirectory

2017-02-10 Thread Johannes Schindelin
In addition to making git_path() aware of certain file names that need to be handled differently e.g. when running in worktrees, the commit 557bd833bb (git_path(): be aware of file relocation in $GIT_DIR, 2014-11-30) also snuck in a new option for `git rev-parse`: `--git-path`. On the face of it,