git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/2] repo info: add path.git-dir and path.common-dir

From
K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Date
Mar 1, 2026, 16:50 UTC
Message-ID
<20260301165051.90762-1-jayatheerthkulkarni2005@gmail.com>
In-Reply-To
<20260301134412.1072596-2-pushkarkumarsingh1970@gmail.com>
> Hi,
>
Hey Pushkar,
Show 7 quoted lines
> Following the earlier RFC discussion about exposing repository
> paths via `git repo info`, this series adds two new fields:
>
>   - path.git-dir
>   - path.common-dir
> > Hi,
>
Hey Pushkar,
Show 6 quoted lines
> Following the earlier RFC discussion about exposing repository
> paths via `git repo info`, this series adds two new fields:
>
>   - path.git-dir
>   - path.common-dir
>

There are no updates to t/t1900-repo-info.sh. Since path normalization can be quite tricky across different OS environments, we absolutely need tests to verify how path.git-dir and path.common-dir behave under both --path-format=absolute and --path-format=relative.

For example In both patches, if the path returns NULL, you return an error(...). Have you tested how this behaves if a user runs git repo info --all

This is one I could think of...
Show 11 quoted lines
> These mirror the information available through
> `git rev-parse --git-dir` and `git rev-parse --common-dir`,
> respectively.
>
> This series builds on the recent path-related changes to
> `git repo info` (including `path.toplevel` and the
> `--path-format` flag), which are currently under review.
>
> Both fields respect the `--path-format` semantics introduced
> there.
>
The new keys haven't been added to Documentation/git-repo.adoc.
Show 15 quoted lines
> Pushkar Singh (2):
>   repo: add the field path.git-dir
>   repo: add the field path.common-dir
>
>  builtin/repo.c | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
>
>
> base-commit: 625c4fb2daac9879b299dd1cae2e793d2821dec0
> prerequisite-patch-id: a15d35d8ce98f550953b8d2b5766b945ae73013e
> prerequisite-patch-id: c3311a175dacc8d31ac8143f6deb36a1a46bd960
> prerequisite-patch-id: e2348c7f5cdad006aeb10ddda81a184859941c8c
> prerequisite-patch-id: 54003bdf23d570ce671626496a6622319a4ee2c8
> --
> 2.43.0
Thank you for the patch
Regards
- Jayatheerth

There are no updates to t/t1900-repo-info.sh. Since path normalization can be quite tricky across different OS environments, we absolutely need tests to verify how path.git-dir and path.common-dir behave under both --path-format=absolute and --path-format=relative.

For example In both patches, if the path returns NULL, you return an error(...). Have you tested how this behaves if a user runs git repo info --all

This is one I could think of...
Show 11 quoted lines
> These mirror the information available through
> `git rev-parse --git-dir` and `git rev-parse --common-dir`,
> respectively.
>
> This series builds on the recent path-related changes to
> `git repo info` (including `path.toplevel` and the
> `--path-format` flag), which are currently under review.
>
> Both fields respect the `--path-format` semantics introduced
> there.
>
The new keys haven't been added to Documentation/git-repo.adoc.
Show 15 quoted lines
> Pushkar Singh (2):
>   repo: add the field path.git-dir
>   repo: add the field path.common-dir
>
>  builtin/repo.c | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
>
>
> base-commit: 625c4fb2daac9879b299dd1cae2e793d2821dec0
> prerequisite-patch-id: a15d35d8ce98f550953b8d2b5766b945ae73013e
> prerequisite-patch-id: c3311a175dacc8d31ac8143f6deb36a1a46bd960
> prerequisite-patch-id: e2348c7f5cdad006aeb10ddda81a184859941c8c
> prerequisite-patch-id: 54003bdf23d570ce671626496a6622319a4ee2c8
> --
> 2.43.0
Thank you for the patch
Regards
- Jayatheerth
Previous: Pushkar SinghNext: Lucas Seiki Oshiro
Message 7 of 10 in “[RFC] git repo info: exposing repository paths”
  1. Pushkar SinghFeb 10, 2026
  2. Patrick SteinhardtFeb 11, 2026
  3. Pushkar SinghFeb 18, 2026
  4. 0/2 repo info: add path.git-dir and path.common-dirPushkar Singh, Mar 1, 2026
  5. 1/2 repo: add the field path.git-dirPushkar Singh, Mar 1, 2026
  6. 2/2 repo: add the field path.common-dirPushkar Singh, Mar 1, 2026
  7. K JayatheerthMar 1, 2026
  8. Lucas Seiki OshiroMar 1, 2026
  9. Pushkar SinghMar 1, 2026
  10. Junio C HamanoMar 2, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.