Re: [git-users] Propose to extend includeIf statement with git origin remote-url

2018-03-20 Thread Ævar Arnfjörð Bjarmason
On Tue, Mar 13 2018, Ivan Chernov jotted: > Hello, fellows. > > Git config supports an includeIf statement for conditional > including https://git-scm.com/docs/git-config#_includes, but in conditional > statement included only gitdir. Can we add condition for origin remote-url? > Or for remote ur

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

2018-11-29 Thread Ævar Arnfjörð Bjarmason
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 alternates. However, once you have an existing clone I didn't kn

[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 t

[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 mac

[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 >&

[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 t