threads / discuss / 17778

git status "short circuit"?

Subject: git status "short circuit"?

## tl;dr

2 messages between Feb 13, 2009 and Feb 13, 2009.

replies: 1people: 2as markdown or json

Jordi Bunster· Feb 13, 2009, 17:34 UTC · lore

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· Feb 13, 2009, 17:36 UTC · re: Jordi Bunster · lore

Re: git status "short circuit"?

Jordi Bunster <jordi@bunster.org> wrote:
Show 9 quoted lines
> 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.

← back to recent threads