From: Jeff Epler <jepler@unpythonic.net>
To: Adam Mercer <ramercer@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: determine if the tree is dirty
Date: Tue, 3 Nov 2009 13:06:19 -0600 [thread overview]
Message-ID: <20091103190619.GC30171@unpythonic.net> (raw)
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
next prev parent reply other threads:[~2009-11-03 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-03 18:57 determine if the tree is dirty Adam Mercer
2009-11-03 19:06 ` Jeff Epler [this message]
2009-11-03 19:19 ` Junio C Hamano
2009-11-03 19:30 ` Adam Mercer
2009-11-03 21:07 ` Markus Hitter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091103190619.GC30171@unpythonic.net \
--to=jepler@unpythonic.net \
--cc=git@vger.kernel.org \
--cc=ramercer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.