Re: [GSoC PATCH v4 6/7] repo: add path.git-prefix

K Jayatheerth <[email protected]>
Newsgroups org.kernel.vger.git
Message-ID <CA+rGoLfPJb_Pxjm_Bkqd2Ni0BA1vT2LEObwj4EjUaSRRNyRv-Q@mail.gmail.com>
On Sun, Aug 16, 2026 at 6:24 AM Lucas Seiki Oshiro
<[email protected]> wrote:
>
>
> > Scripts sometimes need the path from the repository's working tree root
> > to the current working directory. While this information can be derived
> > through existing Git commands, `git repo info` does not currently expose
> > it as a scriptable key.
>
> Even though I understand that this is a relevant info, it seems
> to me that it's a little bit out of place here... This is
> a "current directory information", not a "repository information".
> >

I agree that path.git-prefix is technically current-directory information
rather than repository information.

I included it because it is useful path information for scripts
operating within a repository,
and it is already exposed by git rev-parse --show-prefix.
I thought it would fit the purpose of this series, but I can drop it
if you think it is better kept separate.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.