Re: [PATCH 1/2] diff: document behavior of relative diff.orderFile
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 10, 2017, 22:15 UTC
- Message-ID
- <xmqqtw96pno0.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <9daa70e4-82b0-a82a-67b9-e893546638a7@google.com>
Richard Hansen <hansenr@google.com> writes:
Show 9 quoted lines
>> A related tangent. >> >> I wonder if anything that uses git_config_pathname() should be >> relative to GIT_DIR when it is not absolute. > > I think so. (For bare repositories anyway; non-bare should be > relative to GIT_WORK_TREE.) Perhaps git_config_pathname() itself > should convert relative paths to absolute so that every pathname > setting automatically works without changing any calling code.
Yes, that was what I was alluding to. We might have to wait until major version boundary to do so, but I think that it is the sensible way forward in the longer term to convert relative to absolute in git_config_pathname().
Thanks.