[git-users] Re: How de-duplicate similar repositories with alternates

2018-12-04 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > I think a warning (or even error) like this would be more useful: > > test ! -d $objdir && error... # current behavior > test -d $objdir/objects && error "Did you mean $objdir/objects, silly?" # > new error If it is an error common enough, perhaps we

[git-users] Re: How de-duplicate similar repositories with alternates

2018-12-04 Thread Ævar Arnfjörð Bjarmason
On Thu, Nov 29 2018, Ævar Arnfjörð Bjarmason wrote: > A co-worker asked me today how space could be saved when you have > multiple checkouts of the same repository (at different revs) on the > same machine. I said since these won't block-level de-duplicate well[1] > one way to do this is with

[git-users] Re: How de-duplicate similar repositories with alternates

2018-12-04 Thread Ævar Arnfjörð Bjarmason
On Tue, Dec 04 2018, Jeff King wrote: > On Thu, Nov 29, 2018 at 03:59:26PM +0100, Ævar Arnfjörð Bjarmason wrote: > >> This is the thing I was wrong about, in retrospect probably because I'd >> been putting PATH_TO_REPO in objects/info/alternates, but we actually >> need PATH_TO_REPO/objects,

[git-users] Re: How de-duplicate similar repositories with alternates

2018-11-30 Thread 'Stefan Beller' via Git for human beings
On Thu, Nov 29, 2018 at 7:00 AM Ævar Arnfjörð Bjarmason wrote: > > A co-worker asked me today how space could be saved when you have > multiple checkouts of the same repository (at different revs) on the > same machine. I said since these won't block-level de-duplicate well[1] > one way to do

[git-users] Re: How de-duplicate similar repositories with alternates

2018-11-29 Thread Ævar Arnfjörð Bjarmason
On Thu, Nov 29 2018, Stefan Beller wrote: > On Thu, Nov 29, 2018 at 7:00 AM Ævar Arnfjörð Bjarmason > wrote: >> >> A co-worker asked me today how space could be saved when you have >> multiple checkouts of the same repository (at different revs) on the >> same machine. I said since these won't

[git-users] Re: How de-duplicate similar repositories with alternates

2018-11-29 Thread Ævar Arnfjörð Bjarmason
On Thu, Nov 29 2018, Ævar Arnfjörð Bjarmason wrote: > A co-worker asked me today how space could be saved when you have > multiple checkouts of the same repository (at different revs) on the > same machine. I said since these won't block-level de-duplicate well[1] > one way to do this is with