From: Luck, Tony Date: Mon, 31 Oct 2005 19:50:48 GMT Subject: Re: git push sends more objects than it needs to Message-ID: <20051031195048.GA9231@agluck-lia64.sc.intel.com> In-Reply-To: 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. > 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. > 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