Skip to content

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