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

Re: [Feature Request] git export

From
TKThomas Koch <thomas@koch.ro>
Date
Aug 10, 2009, 16:41 UTC
Message-ID
<200908101841.00522.thomas@koch.ro>
In-Reply-To
<c115fd3c0908100927v4d9e4a87we4502e91d3789138@mail.gmail.com>
Hi Tim,

thanks for your explanation. Still I don't get how to do it with git checkout- index. The man page says "Just read the desired tree into the index", but I don't know what is meant by this.

Show 20 quoted lines
> Hey Thomas,
>
> On Mon, Aug 10, 2009 at 12:22 PM, Thomas Koch<thomas@koch.ro> wrote:
> > could you please provide a simple solution to save a tree object into an
> > arbitrary location?
>
> This has been requested a few times and I have no idea what the
> development status of it is.  Most people seem to recommend just
> making an alias around git checkout-index.
>
> > 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.
>
> It's not really a misuse, as the [man page
> itself](http://www.kernel.org/pub/software/scm/git/docs/git-checkout-index.
>html) recommends using checkout-index as a way to export an entire tree.
> Until someone decides that it's worth making the porcelain command (like
> you perhaps) then I think you can just stick with checkout-index knowing
> you're not abusing anything.
Thomas Koch, http://www.koch.ro
Previous: Tim VisherNext: Tim Visher
Message 3 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.