Open
Conversation
|
There is a merge commit in this Pull Request: Please rebase the branch and force-push. |
4cd84b9 to
a17a495
Compare
|
There is a merge commit in this Pull Request: Please rebase the branch and force-push. |
1 similar comment
|
There is a merge commit in this Pull Request: Please rebase the branch and force-push. |
47e9cf4 to
448dfae
Compare
Contributor
Author
|
/submit |
|
Submitted as pull.2264.git.git.1775150062407.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
448dfae to
05e34bf
Compare
Contributor
Author
|
/submit |
|
Submitted as pull.2264.v2.git.git.1775668134796.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
05e34bf to
56a16e0
Compare
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. Signed-off-by: Jayesh Daga jayeshdaga99@gmail.com
56a16e0 to
8a58b6c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
repo info currently does not expose the repository's
working tree root, even though this information is
available via repo_get_work_tree().
This makes it harder for scripts to retrieve the
repository root through a structured interface, often
requiring the use of git rev-parse --show-toplevel.
Add a new field paths.toplevel to git repo info
that returns the working tree root. For bare repositories,
this value is empty, consistent with other non-applicable
fields.
This provides a consistent and script-friendly way to
query repository paths without invoking additional
commands.
cc: Derrick Stolee stolee@gmail.com
Signed-off-by: Jayesh Daga jayeshdaga99@gmail.com