git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git status "short circuit"?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 13, 2009, 17:36 UTC
Message-ID
<20090213173615.GA30949@spearce.org>
In-Reply-To
<BF509531-D8A4-4F5F-894F-735252AA4C26@bunster.org>
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.
Previous: Jordi Bunster
Message 2 of 2 in “git status "short circuit"?”
  1. Jordi BunsterFeb 13, 2009
  2. Shawn O. PearceFeb 13, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.