git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 4 in “git-inject-tarball”
  1. Anand KumriaDec 28, 2005
  2. Johannes SchindelinDec 28, 2005
  3. Simon RichterDec 28, 2005
  4. Johannes SchindelinDec 28, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.