From: K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
To: pushkarkumarsingh1970@gmail.com
Cc: git@vger.kernel.org, gitster@pobox.com, jtobler@github.com,
karthiknayak@gmail.com, lucasseikioshiro@gmail.com,
patrick@pks.im, peff@peff.net
Subject: Re: [PATCH 0/2] repo info: add path.git-dir and path.common-dir
Date: Sun, 1 Mar 2026 22:20:51 +0530 [thread overview]
Message-ID: <20260301165051.90762-1-jayatheerthkulkarni2005@gmail.com> (raw)
In-Reply-To: <20260301134412.1072596-2-pushkarkumarsingh1970@gmail.com>
> Hi,
>
Hey Pushkar,
> 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,
> 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...
> 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.
> 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...
> 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.
> 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
next prev parent reply other threads:[~2026-03-01 16:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-10 14:11 [RFC] git repo info: exposing repository paths Pushkar Singh
2026-02-11 12:18 ` Patrick Steinhardt
2026-02-18 18:35 ` Pushkar Singh
2026-03-01 13:44 ` [PATCH 0/2] repo info: add path.git-dir and path.common-dir Pushkar Singh
2026-03-01 13:59 ` [PATCH 1/2] repo: add the field path.git-dir Pushkar Singh
2026-03-01 14:03 ` [PATCH 2/2] repo: add the field path.common-dir Pushkar Singh
2026-03-01 16:50 ` K Jayatheerth [this message]
2026-03-01 18:48 ` [PATCH 0/2] repo info: add path.git-dir and path.common-dir Lucas Seiki Oshiro
2026-03-01 19:34 ` Pushkar Singh
2026-03-02 16:50 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260301165051.90762-1-jayatheerthkulkarni2005@gmail.com \
--to=jayatheerthkulkarni2005@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jtobler@github.com \
--cc=karthiknayak@gmail.com \
--cc=lucasseikioshiro@gmail.com \
--cc=patrick@pks.im \
--cc=peff@peff.net \
--cc=pushkarkumarsingh1970@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox