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

short notation in status plugin + no tags if specified #96

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

baaroth
Copy link

@baaroth baaroth commented Jan 15, 2019

"short notation" as per git own PS1 convention, except

  • kept your "nothing" on neither ahead nor behind (instead of u=)
  • kept your (green) "clean" when no change (instead of nothing)
  • advertise "no upstream" (instead of nothing)

e.g. (you'll have to imagine the color ^^):

/s/pao/pao-admin develop * u+3-10 $ gr @model @was status -q
S:\pao\build                      develop                 clean            
S:\pao\pao-admin                  develop                 *     u+3-10     
S:\pao\pao-api                    develop                 *%    u-31       
S:\pao\pao-api-model              mt.0322                 clean no upstream
S:\pao\pao-business-commons       develop                 clean u+1     

remove tags info when '-q' option is given
* no set upstream: says so (gray color)
* only ahead: u+<count>
* only behind: u-<count>
* both: u+<countA>-<countB> (red color)
* neither: empty string
using the 9 "saved" chars for branch name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant