unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: Large git repositories
Date: Fri, 23 Jan 2015 09:35:33 +0100	[thread overview]
Message-ID: <87bnlpyjvu.fsf@gnu.org> (raw)
In-Reply-To: <20150122191909.GA7921@debian.math.u-bordeaux1.fr> (Andreas Enge's message of "Thu, 22 Jan 2015 20:19:09 +0100")

Andreas Enge <andreas@enge.fr> skribis:

> On Tue, Jan 13, 2015 at 11:32:25AM +0100, Ludovic Courtès wrote:
>> Andreas Enge <andreas@enge.fr> skribis:
>> > It looks like:
>> >    --depth=1 --single-branch
>> > could be useful parameters for "git clone".
>> Yes, that’s what came to mind.
>> If it happens to be useful, we could extend ‘git-reference’ with a list
>> of extra parameters to pass to ‘git’.
>
> Actually, I have something else in mind. Currently, we accept commit hashes
> or branch/tag names.

It’s already possible, in the ‘commit’ field, to use anything that ‘git
checkout’ would accept, which includes a commit hash, a tag, or a branch
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=1 --single-branch".
>
> Alternatively, we could also automatically distinguish commit hashes from
> branch/tag names, for instance, by imposing that always the long commit hash
> is used and assuming that a branch/tag name never equals a hexidecimal string
> 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 delete
> everything outside data/fonts (and in particular the huge .git). The result
> would be the source for a variety of android fonts (maybe to be placed into
> font-android.scm or the like).
>
> What do you think?

Those changes you propose would be fine, but still, it’s extra
complexity and I’m worried that it would be used essentially in a just
one place.  Is there really no other way to get these fonts?

Thanks,
Ludo’.

      reply	other threads:[~2015-01-23  8:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-12 22:03 Large git repositories Andreas Enge
2015-01-12 22:45 ` Andreas Enge
2015-01-12 23:01   ` Andreas Enge
2015-01-13 10:32   ` Ludovic Courtès
2015-01-13 13:31 ` Amirouche Boubekki
2015-01-22 19:19   ` Andreas Enge
2015-01-23  8:35     ` Ludovic Courtès [this message]

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnlpyjvu.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=andreas@enge.fr \
    --cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).