bash prompt: return early from __git_ps1() when not in a git repository
commit96ea404757ac3f97335277062a7d7c6e8975cc4f
authorSZEDER Gábor <szeder@ira.uka.de>
Mon, 5 Sep 2011 18:53:37 +0000 (5 20:53 +0200)
committerSZEDER Gábor <szeder@ira.uka.de>
Mon, 24 Jun 2013 15:22:09 +0000 (24 17:22 +0200)
treeba9320a3c2f1970d435627f7f9ce55a59be10e58
parente8f21caf94287d838cfffe8301b28fdc45480ac8
bash prompt: return early from __git_ps1() when not in a git repository

... to gain one level of indentation for the bulk of the function.

(The patch looks quite unreadable, you'd better check it with 'git
diff -w'.)

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
contrib/completion/git-prompt.sh