0

Using rtomayko's git-sh, I've noticed a marker that I haven't seen in the examples. prompt

u= (which I imagine stands for upstream) tells me how many commits I've committed locally, but have not pushed to the remote repo. I'd like to update it's styling, but I can't seem to figure out it's exact name so I can change it in my .gitconfig!

Salar
  • 831
  • 8
  • 13

1 Answers1

1

From the code it looks like the u= is added by _git_upstream_state, which is called via the following definition:

PS1='`_git_headname``_git_upstream_state`!`_git_repo_state``_git_workdir``_git_dirty``_git_dirty_stash`> '
Matthew Strawbridge
  • 18,016
  • 10
  • 65
  • 86
  • 1
    I feel like today is the day I stop looking at the docs and start looking at source code. Thanks!! – Salar Apr 18 '14 at 05:44