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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html