[PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Felipe Contreras
When this option is enabled, the prompt gets totally screwed in zsh because all the codes start with % in zsh (like they are \ in bas). So we need to escape the % character. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- contrib/completion/git-prompt.sh | 6 +- 1 file

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Andreas Schwab
Felipe Contreras felipe.contre...@gmail.com writes: + if [ -n ${ZSH_VERSION-} ]; then + u=%% + else + u=% + fi aka u=%${ZSH_VERSION:+%}

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Eric Sunshine
On Sun, Apr 21, 2013 at 4:11 AM, Felipe Contreras felipe.contre...@gmail.com wrote: When this option is enabled, the prompt gets totally screwed in zsh because all the codes start with % in zsh (like they are \ in bas). So s/bas/bash/ we need to escape the % character. Signed-off-by: Felipe

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: When this option is enabled, the prompt gets totally screwed in zsh because all the codes start with % in zsh (like they are \ in bas). So we need to escape the % character. It is not that I do not believe that $u needs to duplicate %% in

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: When this option is enabled, the prompt gets totally screwed in zsh because all the codes start with % in zsh (like they are \ in bas). So we need to escape the % character. It is not that I do not believe that $u needs to duplicate %% in

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Junio C Hamano
Andreas Schwab sch...@linux-m68k.org writes: Felipe Contreras felipe.contre...@gmail.com writes: +if [ -n ${ZSH_VERSION-} ]; then +u=%% +else +u=% +

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Andreas Schwab
Junio C Hamano gits...@pobox.com writes: Andreas Schwab sch...@linux-m68k.org writes: Felipe Contreras felipe.contre...@gmail.com writes: + if [ -n ${ZSH_VERSION-} ]; then + u=%% + else +

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Felipe Contreras
On Sun, Apr 21, 2013 at 2:02 PM, Andreas Schwab sch...@linux-m68k.org wrote: Junio C Hamano gits...@pobox.com writes: Andreas Schwab sch...@linux-m68k.org writes: Felipe Contreras felipe.contre...@gmail.com writes: + if [ -n ${ZSH_VERSION-} ]; then +

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: On Sun, Apr 21, 2013 at 2:02 PM, Andreas Schwab sch...@linux-m68k.org wrote: Junio C Hamano gits...@pobox.com writes: Andreas Schwab sch...@linux-m68k.org writes: Felipe Contreras felipe.contre...@gmail.com writes: +

Re: [PATCH] prompt: fix tracked files for zsh

2013-04-21 Thread Felipe Contreras
On Sun, Apr 21, 2013 at 5:00 PM, Junio C Hamano gits...@pobox.com wrote: Felipe Contreras felipe.contre...@gmail.com writes: On Sun, Apr 21, 2013 at 2:02 PM, Andreas Schwab sch...@linux-m68k.org wrote: Junio C Hamano gits...@pobox.com writes: Andreas Schwab sch...@linux-m68k.org writes: