From: Karthik Nayak Date: Thu, 09 Apr 2026 13:13:35 GMT Subject: Re: [PATCH v3] repo: add paths.toplevel to repo info Message-ID: In-Reply-To: "Jayesh Daga via GitGitGadget" writes: > From: Jayesh Daga > > repo info currently does not expose the repository's > working tree root, even though this information is > available via `repo_get_work_tree()` and > `git rev-parse --show-toplevel`. > > Add a new field `paths.toplevel` to expose this value. > > While doing so, document the correspondence between > `git rev-parse` options and `repo info` fields to make > it easier to identify missing or future additions. > > For bare repositories, this value is empty, consistent > with other non-applicable fields. > Don't we still have to decide how we want to support relative vs absolute paths? [1] Also seeing that you're a GSoC candidate and this is part of the project that you've (and other potential contributors) applied for, our recommendation is to not start working on a project before the selection process. [snip] [1]: https://lore.kernel.org/git/CA+rGoLfbzXqP1Tw+94jMmWcSGPoefMv5E_fvwriad-O5CUeKHQ@mail.gmail.com/T/#m1e2b69b6b097c42b06088349947e43831cf5988f