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

Re: git push sends more objects than it needs to

From
Luck, Tony <tony.luck@intel.com>
Date
Oct 31, 2005, 19:50 UTC
Message-ID
<20051031195048.GA9231@agluck-lia64.sc.intel.com>
In-Reply-To
<Pine.LNX.4.64.0510311119170.27915@g5.osdl.org>
On Mon, Oct 31, 2005 at 11:36:09AM -0800, Linus Torvalds wrote:
>  a) The "don't do that then" approach:
> 
>     Don't go behind git's back and add objects on your own, and expect git 
>     to realize what you did. ;^p

To be a responsible kernel.org git user I need to use packfiles. The cheapest and easiest way to do that is to steal them from you.

Show 8 quoted lines
>  b) The "live with it" approach:
> 
>     You copied the pack by hand, and that will keep git-unpack-objects 
>     from duplicating the objects, but you'll still waste time and network 
>     when trying pushing the objects (just once, though).
> 
>     Ie this is what happened this time: nothing really lost, and the end 
>     result is fine. Now you know why it happened, and you're fine.

I like this one best. There's a pretty fat pipe between here and kernel.org ... more of the time wasted appeared to be on the unpacking part than on the transfer.

Show 5 quoted lines
>  d) Just let git do it for you.
> 
>     Copy the pack-files, or add my object directory as an "alternates" for 
>     your object directory, do the "git prune-objects", and then _locally_ 
>     on master.kernel.org just do something like

Longer term (when everyone is pulling using the "git" protocol) adding your object directory to my info/alternates looks to be the best thing.

-Tony
Previous: Linus TorvaldsNext: Junio C Hamano
Message 4 of 5 in “git push sends more objects than it needs to”
  1. Luck, TonyOct 31, 2005
  2. Linus TorvaldsOct 31, 2005
  3. Linus TorvaldsOct 31, 2005
  4. Luck, TonyOct 31, 2005
  5. Junio C HamanoOct 31, 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.