Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Status Porcelain #1856

Open
Joe-Zer0 opened this issue Feb 22, 2025 · 2 comments
Open

Git Status Porcelain #1856

Joe-Zer0 opened this issue Feb 22, 2025 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Joe-Zer0
Copy link

Summary 💡

I use the command git --no-optional-locks status --porcelain=2 --branch to help populate my terminal prompt with information about the current get repo. It would be very useful if this functionality were implemented in gitoxide. Thank you for your consideration.

Motivation 🔦

Since this command is run as part of my terminal prompt. It is run very frequently and the performance of it is very noticeable. If this feature were to be implemented and be even more performant, I think this would be a great quality of life improvement for me and likely many others using this command in their prompt.

@Joe-Zer0 Joe-Zer0 added the enhancement New feature or request label Feb 22, 2025
@Byron Byron added the help wanted Extra attention is needed label Feb 22, 2025
@Byron
Copy link
Member

Byron commented Feb 22, 2025

Thanks for sharing the use-case!

This looks like gix status could quite easily implement it, in essence it's a change to what it computes and how it's presented.

# branch.oid 8da491e9f02c3bd5fcee8721ed5bfd011fa4fedb
# branch.head fix-1850
# branch.upstream origin/fix-1850
# branch.ab +0 -0

It's notable that the ahead-behind information can't currently be computed, but it's something I'd love to see soon.

@Joe-Zer0
Copy link
Author

Thanks for the quick reply! And that sounds promising!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants