cmder-powerline-prompt icon indicating copy to clipboard operation
cmder-powerline-prompt copied to clipboard

Feature request: show how many commits you are behind by with tracking branch

Open shreyasbharath opened this issue 5 years ago • 3 comments

This would be really handy and remind you to rebase/merge if you are behind with your tracking branch.

It could poll in the background every X minutes/seconds (this is what Git GUIs like SourceTree do in the background).

What do you think?

shreyasbharath avatar Jul 11 '18 23:07 shreyasbharath

Just to clarify, the prompt would do a git status and add a symbol/number if it's behind the remote branch?
Note that the prompt can't run any background process, it gets invoked every time you hit Enter and a new prompt is displayed on screen. That's the only chance to run any code.

AmrEldib avatar Aug 18 '18 04:08 AmrEldib

Yea that's correct, basically show how many commits it's behind by.

Okay I wasn't aware that you could only run code only when you hit Enter. However, that limitation is okay.

What do you think? I would personally find this very useful as I don't want to rely on any GUI tools to tell me when to rebase with the tracking branch.

shreyasbharath avatar Aug 18 '18 07:08 shreyasbharath

this is duplicate of https://github.com/AmrEldib/cmder-powerline-prompt/issues/30

mattdkerr avatar Apr 16 '19 21:04 mattdkerr