From: Miklos Vajna Date: Sun, 26 Oct 2008 22:26:08 GMT Subject: Re: git working tree status 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 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.