Re: git-inject-tarball
- From
Simon Richter <simon.richter@hogyros.de>
- Date
- Dec 28, 2005, 15:51 UTC
- Message-ID
- <43B2B474.1000603@hogyros.de>
- In-Reply-To
- <Pine.LNX.4.63.0512281230070.15184@wbgn013.biozentrum.uni-wuerzburg.de>
Hi,
Johannes Schindelin wrote:
> Something like this?
Show 10 quoted lines
> -- 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