From: Johannes Schindelin Date: Wed, 28 Dec 2005 16:18:30 GMT Subject: Re: git-inject-tarball Message-ID: In-Reply-To: <43B2B474.1000603@hogyros.de> Hi, On Wed, 28 Dec 2005, Simon Richter wrote: > Well, the most important thing for such a tool IMO would be that it wouldn't > overwrite any uncommitted changes, so it's not as trivial as it seems. Ah, but that's easy: test -z "$(git-diff-index --name-only HEAD)" || exit 1 (This is just the idea; you should also output an error message.) Hth, Dscho