Re: [PATCH 13/21] rev-parse: add '--absolute-git-dir' option

2016-05-18 Thread SZEDER Gábor
Quoting Mike Rappazzo : On Thu, Feb 25, 2016 at 5:54 PM SZEDER Gábor wrote: Some scripts can benefit from not having to deal with the possibility of relative paths to the repository, but the output of 'git rev-parse --git-dir' can be a relative path. Case in point: supporting 'git -C ' in o

Re: [PATCH 13/21] rev-parse: add '--absolute-git-dir' option

2016-04-25 Thread Jeff King
On Mon, Apr 25, 2016 at 10:33:13PM -0400, Mike Rappazzo wrote: > I propose that it might make more sense to use something like > `--abs-path` to indicate > that the result should include an absolute path (or we could also just spell > out > `--absolute-path`). That way we don't have to add addit

Re: [PATCH 13/21] rev-parse: add '--absolute-git-dir' option

2016-04-25 Thread Mike Rappazzo
On Thu, Feb 25, 2016 at 5:54 PM SZEDER Gábor wrote: > > Some scripts can benefit from not having to deal with the possibility > of relative paths to the repository, but the output of 'git rev-parse > --git-dir' can be a relative path. Case in point: supporting 'git -C > ' in our Bash completion s

[PATCH 13/21] rev-parse: add '--absolute-git-dir' option

2016-02-25 Thread SZEDER Gábor
Some scripts can benefit from not having to deal with the possibility of relative paths to the repository, but the output of 'git rev-parse --git-dir' can be a relative path. Case in point: supporting 'git -C ' in our Bash completion script turned out to be considerably more difficult, error prone