git status "short circuit"?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

git status "short circuit"?

From: Jordi Bunster <hidden>
Date: 2016-06-15 22:46:10

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

Re: git status "short circuit"?

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:46:10

Jordi Bunster [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help