From: Shawn O. Pearce Date: Fri, 13 Feb 2009 17:36:15 GMT Subject: Re: git status "short circuit"? Message-ID: <20090213173615.GA30949@spearce.org> In-Reply-To: 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.