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

Re: git working tree status

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Oct 26, 2008, 22:26 UTC
Message-ID
<20081026222608.GK2273@genesis.frugalware.org>
In-Reply-To
<20081026222335.GJ2273@genesis.frugalware.org>
On Sun, Oct 26, 2008 at 11:23:35PM +0100, Miklos Vajna <vmiklos@frugalware.org> wrote:
> > c) 'dirty' in some way -- new files, uncommitted changes, etc.
> 
> git update-index -q --refresh
> test -z "$(git diff-index --name-only HEAD --)" && echo "dirty"
I wanted to write '|| echo "dirty"', sorry.
Previous: Miklos VajnaNext: Mike Clarke
Message 3 of 4 in “git working tree status”
  1. Mike ClarkeOct 26, 2008
  2. Miklos VajnaOct 26, 2008
  3. Miklos VajnaOct 26, 2008
  4. Mike ClarkeOct 27, 2008

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.