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

Re: determine if the tree is dirty

From
Markus Hitter <mah@jump-ing.de>
Date
Nov 3, 2009, 21:07 UTC
Message-ID
<83B75882-0005-4BB3-BA7C-60A9105BDD5A@jump-ing.de>
In-Reply-To
<799406d60911031057l5dcb4d4fi3705cc66997ff7f7@mail.gmail.com>
Am 03.11.2009 um 19:57 schrieb Adam Mercer:
> As part of a python script I need to determine if a tree has any
> uncommitted changes, so far I am been using:
> [...]
> Does anyone know of a better way to accomplish this?
I'm using
git ls-files -m -o -d --exclude-standard
If it returns anything, your repo is dirty.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
Previous: Adam Mercer
Message 5 of 5 in “determine if the tree is dirty”
  1. Adam MercerNov 3, 2009
  2. Jeff EplerNov 3, 2009
  3. Junio C HamanoNov 3, 2009
  4. Adam MercerNov 3, 2009
  5. Markus HitterNov 3, 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.