# git status "short circuit"?

2 messages from 2009-02-13 to 2009-02-13. Participants: Jordi Bunster, Shawn O. Pearce.
Thread: https://gitlist.dev/t/17778

## Jordi Bunster, 2009-02-13 17:34

Subject: git status "short circuit"?
Message-ID: <BF509531-D8A4-4F5F-894F-735252AA4C26@bunster.org>
URL: https://gitlist.dev/e/BF509531-D8A4-4F5F-894F-735252AA4C26%40bunster.org

```
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?

P.S.: I'm not subscribed, please Cc.

--
	Jordi


```

## Shawn O. Pearce, 2009-02-13 17:36

Subject: Re: git status "short circuit"?
Message-ID: <20090213173615.GA30949@spearce.org>
URL: https://gitlist.dev/e/20090213173615.GA30949%40spearce.org
In-Reply-To: <BF509531-D8A4-4F5F-894F-735252AA4C26@bunster.org>

```
Jordi Bunster <jordi@bunster.org> 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.

```
