From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn O. Pearce" Subject: Re: git status "short circuit"? Date: Fri, 13 Feb 2009 09:36:15 -0800 Message-ID: <20090213173615.GA30949@spearce.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: Jordi Bunster X-From: git-owner@vger.kernel.org Fri Feb 13 18:38:07 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1LY1yy-0005QM-Or for gcvg-git-2@gmane.org; Fri, 13 Feb 2009 18:37:45 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751967AbZBMRgS (ORCPT ); Fri, 13 Feb 2009 12:36:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751926AbZBMRgR (ORCPT ); Fri, 13 Feb 2009 12:36:17 -0500 Received: from george.spearce.org ([209.20.77.23]:39377 "EHLO george.spearce.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbZBMRgQ (ORCPT ); Fri, 13 Feb 2009 12:36:16 -0500 Received: by george.spearce.org (Postfix, from userid 1001) id C174338210; Fri, 13 Feb 2009 17:36:15 +0000 (UTC) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Jordi Bunster wrote: > I have a prompt snippet that shows me if there's something staged/ > changed/untracked (as different characters). > > It parses the output of git status. Since I don't really need to know > *all* that is staged/dirty/untracked, I was wondering if there's > something faster I could use. Something that stops at the first > occurrence of each category, perhaps. > > Any ideas? Latest version of the bash completion package has a dirty prompt setting you can enable. Grab it out of the git repository and try it out. -- Shawn.