{"thread":{"id":"44113","subject":".git directory tree as tar-file","startedAt":"2016-09-19T20:31:24Z","lastAt":"2016-09-20T00:49:14Z","messageCount":3,"participants":["Martin Bammer","Jacob Keller","Anatoly Borodin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"302181","messageId":"1474317076.23916.6.camel@gmail.com","threadId":"44113","inReplyTo":null,"subject":".git directory tree as tar-file","fromName":"Martin Bammer","fromEmail":"mrbm74@gmail.com","sentAt":"2016-09-19T20:31:16Z","receivedAt":"2016-09-19T20:31:24Z","isPatch":false,"sender":{"key":"mrbm74@gmail.com","avatar":null},"body":"Hi,\n\nit would be nice to have an option to have a .git.tar instead of the .git\ndirectory tree. This tree quickly gets very big and copy and compare actions\ntake very long. I've observed that even in small projects with only a few files\nthe .git tree can contain several thousand entries. Especially when projects are\nsaved on shares copy and compare actions are getting very slow.\nIs such a feature already planned or is there a chance to have such a feature in\nthe near future?\n\nBest regards,\n\nMartin\n\n"},{"id":"302185","messageId":"CA+P7+xp5ehLnuQjekhJ6mfRVmm-pdxm96wcCDfBH15Hj+RTuAg@mail.gmail.com","threadId":"44113","inReplyTo":"1474317076.23916.6.camel@gmail.com","subject":"Re: .git directory tree as tar-file","fromName":"Jacob Keller","fromEmail":"jacob.keller@gmail.com","sentAt":"2016-09-19T20:53:47Z","receivedAt":"2016-09-19T20:54:13Z","isPatch":false,"sender":{"key":"jacob.keller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/874719?v=4"},"body":"On Mon, Sep 19, 2016 at 1:31 PM, Martin Bammer <mrbm74@gmail.com> wrote:\n> Hi,\n>\n> it would be nice to have an option to have a .git.tar instead of the .git\n> directory tree. This tree quickly gets very big and copy and compare actions\n> take very long. I've observed that even in small projects with only a few files\n> the .git tree can contain several thousand entries. Especially when projects are\n> saved on shares copy and compare actions are getting very slow.\n> Is such a feature already planned or is there a chance to have such a feature in\n> the near future?\n>\n> Best regards,\n>\n\nIt sounds like you're mis-using the git directory and attempting to\nshare by copying it instead of using any of the protocols designed for\nsharing such as local file, ssh, or https.\n\nI don't believe that storing the git via compression is really a good\nidea, as many of the operations inside are based on files and we\nalready try to keep things compressed using various methods already\n(pack files)\n\nIf you want to actually share a git repository as a bundle, you can\ngenerate such a bundle. See \"git help bundle\" for more information.\n\nRegards,\nJake\n\n> Martin\n>\n"},{"id":"302205","messageId":"nrq11d$4l9$1@blaine.gmane.org","threadId":"44113","inReplyTo":"1474317076.23916.6.camel@gmail.com","subject":"Re: .git directory tree as tar-file","fromName":"Anatoly Borodin","fromEmail":"anatoly.borodin@gmail.com","sentAt":"2016-09-20T00:48:45Z","receivedAt":"2016-09-20T00:49:14Z","isPatch":false,"sender":{"key":"anatoly.borodin@gmail.com","avatar":"https://gravatar.com/avatar/59f11f1f45cf5ebb7bcca8da94b43cfe5f596d91c0a3e27ad0d2a861cc2bbce7?d=mp&s=160"},"body":"Hi Martin,\n\nif multiple small loose files are the problem, this could be interesting\nfor you:\n\nhttps://git-scm.com/docs/git-gc\n\nThis command is run automatically from time to time, and you can\nconfigure it or run manually.\n\nPS To see how bad the situation is, you can use\n\nhttps://git-scm.com/docs/git-count-objects\n\n\n-- \nMit freundlichen Grüßen,\nAnatoly Borodin\n\n"}]}