From: Junio C Hamano Date: Tue, 10 Jan 2017 22:15:11 GMT Subject: Re: [PATCH 1/2] diff: document behavior of relative diff.orderFile Message-ID: In-Reply-To: <9daa70e4-82b0-a82a-67b9-e893546638a7@google.com> Richard Hansen writes: >> 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.