From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Rosenberg Subject: [StGit PATCH 2/2] Don't use / as separatar since it is common i branch names Date: Sun, 20 May 2007 22:04:08 +0200 Message-ID: <20070520200408.14633.12056.stgit@lathund.dewire.com> References: <20070520200113.14633.90705.stgit@lathund.dewire.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org To: <20070506150852.8985.98091.stgit@yoghurt.dewire.com> X-From: git-owner@vger.kernel.org Sun May 20 22:04:42 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hprdx-0000n9-US for gcvg-git@gmane.org; Sun, 20 May 2007 22:04:42 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755888AbXETUEg (ORCPT ); Sun, 20 May 2007 16:04:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755929AbXETUEg (ORCPT ); Sun, 20 May 2007 16:04:36 -0400 Received: from [83.140.172.130] ([83.140.172.130]:15000 "EHLO dewire.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755888AbXETUEg (ORCPT ); Sun, 20 May 2007 16:04:36 -0400 Received: from localhost (localhost [127.0.0.1]) by dewire.com (Postfix) with ESMTP id D7DAF8028AB; Sun, 20 May 2007 21:58:18 +0200 (CEST) Received: from dewire.com ([127.0.0.1]) by localhost (torino [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25225-06; Sun, 20 May 2007 21:58:18 +0200 (CEST) Received: from lathund.dewire.com (unknown [10.9.0.4]) by dewire.com (Postfix) with ESMTP id 8F569800783; Sun, 20 May 2007 21:58:18 +0200 (CEST) Received: from localhost (lathund.dewire.com [127.0.0.1]) by lathund.dewire.com (Postfix) with ESMTP id 07DE229210; Sun, 20 May 2007 22:04:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at localhost.localdomain Received: from lathund.dewire.com ([127.0.0.1]) by localhost (lathund.dewire.com [127.0.0.1]) (amavisd-new, port 10025) with LMTP id p90q4R-xi53g; Sun, 20 May 2007 22:04:30 +0200 (CEST) Received: from lathund.dewire.com (lathund.dewire.com [127.0.0.1]) by lathund.dewire.com (Postfix) with ESMTP id 20F0C2936A; Sun, 20 May 2007 22:04:08 +0200 (CEST) In-Reply-To: <20070520200113.14633.90705.stgit@lathund.dewire.com> User-Agent: StGIT/0.12 X-Virus-Scanned: by amavisd-new at dewire.com Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Robin Rosenberg --- contrib/stgbashprompt.sh | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/stgbashprompt.sh b/contrib/stgbashprompt.sh index 7c5dc76..732966a 100755 --- a/contrib/stgbashprompt.sh +++ b/contrib/stgbashprompt.sh @@ -8,9 +8,9 @@ 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=$(tail -1 $git_dir/patches/$br/applied 2>/dev/null) \ - && top="/$top"; - echo "[$br$top]" + top=$(tail -1 $git_dir/patches/$br/applied 2>/dev/null) + top=${top:-(none)} + echo "[$top@$br]" } PS1='\u@\h:$(__prompt_git)\W\$ ' fi