Re: [PATCH] git-prompt.sh: shorter equal upstream branch name

2014-10-07 Thread Julien Carsique
Hi, Thank you both for your feedback! I'm looking at applying your requests: - add tests, - variable renaming, - use of local, - fix multiple issues on string parsing - avoid useless bash-isms? Did you agree on the ones I should remove? I'll send an updated patch asap. Tell me if I forgot

[PATCH] git-prompt.sh: shorter equal upstream branch name

2014-09-30 Thread Julien Carsique
From: Julien Carsique julien.carsi...@gmail.com When using the name option of GIT_PS1_SHOWUPSTREAM to show the upstream abbrev name, if the upstream name is the same as the local name, then some space could be saved in the prompt. This is especially needed on long branch names. Replace

[PATCH] git-prompt.sh: show the upstream abbrev name

2013-10-10 Thread Julien Carsique
From: Julien Carsique julien.carsi...@gmail.com When working with multiple remotes, it is common to switch the upstream from a remote to another. Doing so, the prompt may not be the expected one. Providing an option to display tracking information sounds useful. Add a name option

[PATCH] git-prompt.sh: show the upstream abbrev name

2013-10-10 Thread Julien Carsique
From: Julien Carsique julien.carsi...@gmail.com When working with multiple remotes, it is common to switch the upstream from a remote to another. Doing so, the prompt may not be the expected one. Providing an option to display tracking information sounds useful. Add a name option

Re: [PATCH] git-prompt.sh: show the upstream abbrev name

2013-10-10 Thread Julien Carsique
On 10/10/2013 15:58, SZEDER Gábor wrote: Hi, On Thu, Oct 10, 2013 at 03:32:13PM +0200, Julien Carsique wrote: @@ -204,6 +206,9 @@ __git_ps1_show_upstream () *) # diverged from upstream p= u+${count#* }-${count% *} ;; esac