You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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
@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.
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!
The text was updated successfully, but these errors were encountered: