From: "Thanassis Tsiodras" <ttsiodras@gmail.com>
To: "Nicolas Pitre" <nico@cam.org>
Cc: "Matthieu Moy" <Matthieu.Moy@imag.fr>,
"Jakub Narebski" <jnareb@gmail.com>,
git@vger.kernel.org
Subject: Re: Are binary xdeltas only used if you use git-gc?
Date: Mon, 3 Nov 2008 22:35:07 +0200 [thread overview]
Message-ID: <f1d2d9ca0811031235w3581f7ffnc7380b4cb488e71a@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.00.0811010924550.13034@xanadu.home>
Despair...
I just tested "git push --thin"...
Doesn't work.
It still sends the complete object, not a tiny pack as it could (should).
But perhaps I now understand why:
I run git-gc on both the remote end and the working end (before
changing anything,
i.e. with both repos being in sync - "git pull" and "git push" report all OK).
I then noticed that on the remote side, .git/objects/pack had one big pack file,
but on the local one I have two .pack files...!
I proceeded to try (many combinations of params on) git-repack in a vain attempt
to make my local repos also have one single .pack file (presumably, it
should be able
to exactly mirror the remote one, since it has the same objects inside
it!). No way...
git-prune and "git-fsck --full --strict --unreachable" report no errors either.
I'm at a loss as to why the two repos are having different "pack
representation" of the
same objects and why git-gc and git-repack fail to create a single
pack on my working
side, but I'm guessing that this is why "git push --thin" fails to
send small xdeltas...
Any help/advice on what to try next would be most welcome...
Thanassis.
On 11/1/08, Nicolas Pitre <nico@cam.org> wrote:
> On Sat, 1 Nov 2008, Thanassis Tsiodras wrote:
>
>> Thanks to everybody for your help.
>>
>> I will setup an alias to always use "git push --thin".
>> For the reverse direction, I don't see a --thin for "git pull",
>>
>> My understanding is that "git pull" is optimal,
>> and does what --thin does for push anyway, right?
>
> Exact.
>
>
> Nicolas
>
--
What I gave, I have; what I spent, I had; what I kept, I lost. -Old Epitaph
next prev parent reply other threads:[~2008-11-03 20:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-31 9:43 Are binary xdeltas only used if you use git-gc? Thanassis Tsiodras
2008-10-31 11:02 ` Pierre Habouzit
2008-10-31 11:16 ` Thanassis Tsiodras
2008-10-31 19:47 ` Nicolas Pitre
2008-10-31 19:31 ` Nicolas Pitre
2008-10-31 11:15 ` Jakub Narebski
2008-10-31 11:28 ` Thanassis Tsiodras
2008-10-31 16:26 ` Jakub Narebski
2008-10-31 16:42 ` Matthieu Moy
2008-10-31 19:53 ` Nicolas Pitre
2008-11-01 11:54 ` Thanassis Tsiodras
2008-11-01 13:25 ` Nicolas Pitre
2008-11-03 20:35 ` Thanassis Tsiodras [this message]
2008-11-03 20:52 ` Pieter de Bie
2008-11-03 21:42 ` Nicolas Pitre
2008-11-03 22:53 ` Thanassis Tsiodras
2008-11-04 1:18 ` Nicolas Pitre
2008-11-04 1:36 ` Junio C Hamano
2008-11-04 1:57 ` Nicolas Pitre
2008-11-04 3:17 ` Junio C Hamano
2008-10-31 17:03 ` Jean-Luc Herren
2008-10-31 12:42 ` Matthieu Moy
2008-10-31 14:22 ` Thanassis Tsiodras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1d2d9ca0811031235w3581f7ffnc7380b4cb488e71a@mail.gmail.com \
--to=ttsiodras@gmail.com \
--cc=Matthieu.Moy@imag.fr \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=nico@cam.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).