From: Robin Rosenberg Date: Sun, 20 May 2007 20:04:03 GMT Subject: [StGit PATCH 1/2] Update the bash prompt from 'applied' instead of the obsolete 'current' Message-ID: <20070520200403.14633.26644.stgit@lathund.dewire.com> In-Reply-To: <20070520200113.14633.90705.stgit@lathund.dewire.com> Signed-off-by: Robin Rosenberg --- contrib/stgbashprompt.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/stgbashprompt.sh b/contrib/stgbashprompt.sh index 16bb39b..7c5dc76 100755 --- a/contrib/stgbashprompt.sh +++ b/contrib/stgbashprompt.sh @@ -8,8 +8,8 @@ if [ "$PS1" ]; then git_dir=$(git-rev-parse --git-dir 2> /dev/null) || return ref=$(git-symbolic-ref HEAD 2> /dev/null) || return br=${ref#refs/heads/} - top=$(cat $git_dir/patches/$br/current 2>/dev/null) \ - && top="/$top" + top=$(tail -1 $git_dir/patches/$br/applied 2>/dev/null) \ + && top="/$top"; echo "[$br$top]" } PS1='\u@\h:$(__prompt_git)\W\$ '