From: Simon Richter Date: Wed, 28 Dec 2005 15:51:16 GMT Subject: Re: git-inject-tarball Message-ID: <43B2B474.1000603@hogyros.de> In-Reply-To: Hi, Johannes Schindelin wrote: > Something like this? > -- snip -- > #!/bin/sh > > TARFILE="$1" > test -z "$TARFILE" && TARFILE=- > > git-ls-files -z | xargs -0 rm > tar xvf "$TARFILE" | xargs git add > git-update-index --remove $(git-ls-files) > -- snap -- 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. Simon