git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git status "short circuit"?
@ 2009-02-13 17:34 Jordi Bunster
  2009-02-13 17:36 ` Shawn O. Pearce
  0 siblings, 1 reply; 2+ messages in thread
From: Jordi Bunster @ 2009-02-13 17:34 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

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


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 1767 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git status "short circuit"?
  2009-02-13 17:34 git status "short circuit"? Jordi Bunster
@ 2009-02-13 17:36 ` Shawn O. Pearce
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2009-02-13 17:36 UTC (permalink / raw)
  To: Jordi Bunster; +Cc: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-13 17:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 17:34 git status "short circuit"? Jordi Bunster
2009-02-13 17:36 ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).