From: Jeff Epler Date: Tue, 03 Nov 2009 19:06:19 GMT Subject: Re: determine if the tree is dirty Message-ID: <20091103190619.GC30171@unpythonic.net> In-Reply-To: <799406d60911031057l5dcb4d4fi3705cc66997ff7f7@mail.gmail.com> On Tue, Nov 03, 2009 at 12:57:37PM -0600, Adam Mercer wrote: > As part of a python script I need to determine if a tree has any > uncommitted changes GIT-VERSION-GEN uses something like this (shell script): git update-index -q --refresh test -z "$(git diff-index --name-only HEAD --)" || VN="$VN-dirty" ;; Jeff