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

Re: .git directory tree as tar-file

From
Jacob Keller <jacob.keller@gmail.com>
Date
Sep 19, 2016, 20:53 UTC
Message-ID
<CA+P7+xp5ehLnuQjekhJ6mfRVmm-pdxm96wcCDfBH15Hj+RTuAg@mail.gmail.com>
In-Reply-To
<1474317076.23916.6.camel@gmail.com>
On Mon, Sep 19, 2016 at 1:31 PM, Martin Bammer <mrbm74@gmail.com> wrote:
Show 12 quoted lines
> Hi,
>
> it would be nice to have an option to have a .git.tar instead of the .git
> directory tree. This tree quickly gets very big and copy and compare actions
> take very long. I've observed that even in small projects with only a few files
> the .git tree can contain several thousand entries. Especially when projects are
> saved on shares copy and compare actions are getting very slow.
> Is such a feature already planned or is there a chance to have such a feature in
> the near future?
>
> Best regards,
>

It sounds like you're mis-using the git directory and attempting to share by copying it instead of using any of the protocols designed for sharing such as local file, ssh, or https.

I don't believe that storing the git via compression is really a good idea, as many of the operations inside are based on files and we already try to keep things compressed using various methods already (pack files)

If you want to actually share a git repository as a bundle, you can generate such a bundle. See "git help bundle" for more information.

Regards, Jake

> Martin
>
Previous: Martin BammerNext: Anatoly Borodin
Message 2 of 3 in “.git directory tree as tar-file”
  1. Martin BammerSep 19, 2016
  2. Jacob KellerSep 19, 2016
  3. Anatoly BorodinSep 20, 2016

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.