From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Large git repositories Date: Fri, 23 Jan 2015 09:35:33 +0100 Message-ID: <87bnlpyjvu.fsf@gnu.org> References: <20150112220332.GA20174@debian> <20150122191909.GA7921@debian.math.u-bordeaux1.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEZiV-0004la-1o for guix-devel@gnu.org; Fri, 23 Jan 2015 03:35:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEZiP-0000AZ-0o for guix-devel@gnu.org; Fri, 23 Jan 2015 03:35:46 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEZiO-0000AU-Sw for guix-devel@gnu.org; Fri, 23 Jan 2015 03:35:40 -0500 In-Reply-To: <20150122191909.GA7921@debian.math.u-bordeaux1.fr> (Andreas Enge's message of "Thu, 22 Jan 2015 20:19:09 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge skribis: > On Tue, Jan 13, 2015 at 11:32:25AM +0100, Ludovic Court=C3=A8s wrote: >> Andreas Enge skribis: >> > It looks like: >> > --depth=3D1 --single-branch >> > could be useful parameters for "git clone". >> Yes, that=E2=80=99s what came to mind. >> If it happens to be useful, we could extend =E2=80=98git-reference=E2=80= =99 with a list >> of extra parameters to pass to =E2=80=98git=E2=80=99. > > Actually, I have something else in mind. Currently, we accept commit hash= es > or branch/tag names. It=E2=80=99s already possible, in the =E2=80=98commit=E2=80=99 field, to us= e anything that =E2=80=98git checkout=E2=80=99 would accept, which includes a commit hash, a tag, or a b= ranch name. > How about adding an additional parameter "branch?" (in various > places, when I looked at the code I think I understood where and would > be willing to propose a patch)? If it is set, we can directly specify > the branch/tag at clone, without the need for an additional checkout, > and could also pass the parameters "--depth=3D1 --single-branch". > > Alternatively, we could also automatically distinguish commit hashes from > branch/tag names, for instance, by imposing that always the long commit h= ash > is used and assuming that a branch/tag name never equals a hexidecimal st= ring > of the corresponding length. But I prefer the additional parameter. I see, that makes sense. > In our case, we could then git clone the 1.5 GB once and for all and dele= te > everything outside data/fonts (and in particular the huge .git). The resu= lt > would be the source for a variety of android fonts (maybe to be placed in= to > font-android.scm or the like). > > What do you think? Those changes you propose would be fine, but still, it=E2=80=99s extra complexity and I=E2=80=99m worried that it would be used essentially in a j= ust one place. Is there really no other way to get these fonts? Thanks, Ludo=E2=80=99.