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

Access .Ahead and .Behind of the push-remote in the built-in Git segment #5312

Open
1 task done
ccjmne opened this issue Jul 20, 2024 · 1 comment
Open
1 task done
Assignees
Labels
🚀 feat New feature

Comments

@ccjmne
Copy link

ccjmne commented Jul 20, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

What would you like to see added?

When you work with a pair of fetch- and push- remotes, it looks like oh-my-posh's built-in Git segment "only" retrieves the Ahead and Behind values for the fetch-remote.
It'd be really neat to be able to also visualise how ahead or behind you are from your push-remote!

Here's the equivalent "segment" in p10k: https://github.com/romkatv/powerlevel10k/blob/2b7da93df04acd04d84f5de827e5b14077839a4b/gitstatus/gitstatus.prompt.zsh#L58-L66

I could give it a spin and try to submit a PR that introduces this functionality, if you think it could make sense!

Thanks in advance!

@ccjmne ccjmne added the 🚀 feat New feature label Jul 20, 2024
@ccjmne ccjmne changed the title In the built-in Git segment, I'd love to have access to the number of commits Ahead and Behind of the *Push* remote Access .Ahead and .Behind of the push-remote in the built-in Git segment Jul 21, 2024
@JanDeDobbeleer
Copy link
Owner

@ccjmne I was looking into this yet I fail to find the correct way to get that information. git status doesn't seem to show it, not do I find another command that can tell me this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 feat New feature
Projects
None yet
Development

No branches or pull requests

2 participants