1 |
On Tue, Jul 3, 2018 at 12:36 PM Rich Freeman <rich0@g.o> wrote: |
2 |
> |
3 |
> On Tue, Jul 3, 2018 at 12:22 PM Matt Turner <mattst88@g.o> wrote: |
4 |
> > |
5 |
> > On Tue, Jul 3, 2018 at 11:38 AM Rich Freeman <rich0@g.o> wrote: |
6 |
> > > 4. by default git tends to accumulate history, which can eat up disk |
7 |
> > > space. I imagine this could be automatically trimmed if users wanted, |
8 |
> > > though during syncing it would at least need to store all the commits |
9 |
> > > between the last fetched and next-fetched, and that means fetching |
10 |
> > > things that might have been subsequently removed/changed |
11 |
> > |
12 |
> > This is why I have not switched to git. I have /usr/portage on a |
13 |
> > separate 1GB partition (with distfiles and packages stored elsewhere). |
14 |
> > The ebuild tree is 600MB with rsync and cannot fit on the partition |
15 |
> > with git. |
16 |
> > |
17 |
> |
18 |
> git clone https://github.com/gentoo-mirror/gentoo.git . --depth 1 |
19 |
> ... |
20 |
> du -sh . |
21 |
> 662M . |
22 |
> |
23 |
> So, with a shallow clone it seems comparable. |
24 |
> |
25 |
> The issue is getting git to constantly trim, probably along the lines of: |
26 |
> https://stackoverflow.com/a/34829535 |
27 |
|
28 |
Exactly. I'm not sure git can automatically trim out history on git |
29 |
pull and I'm even less sure it would be able to do it without |
30 |
temporarily exceeding 1GB of storage. |