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

Re: [Feature Request] git export

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 10, 2009, 16:56 UTC
Message-ID
<alpine.DEB.1.00.0908101855260.8324@intel-tinevez-2-302>
In-Reply-To
<200908101822.59940.thomas@koch.ro>
Hi,
On Mon, 10 Aug 2009, Thomas Koch wrote:
Show 6 quoted lines
> could you please provide a simple solution to save a tree object into an 
> arbitrary location?
>
> I found some hints, that it would be possible by missusing either git 
> checkout-index or git-archive, but I think that it shouldn't require 
> that much GIT FU to do such a simple thing.

You can check out Documentation/install-doc-quick.sh and find that something like

	GIT_INDEX_FILE=.git/tmp
	export GIT_INDEX_FILE
	git read-tree $TREE
	git checkout-index -a -f --prefix=/the/path
	unset GIT_INDEX_FILE
should work.

Hth, Dscho

Previous: Junio C HamanoNext: Michael J Gruber
Message 6 of 7 in “[Feature Request] git export”
  1. Thomas KochAug 10, 2009
  2. Tim VisherAug 10, 2009
  3. Thomas KochAug 10, 2009
  4. Tim VisherAug 10, 2009
  5. Junio C HamanoAug 10, 2009
  6. Johannes SchindelinAug 10, 2009
  7. Michael J GruberAug 11, 2009

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.