unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <contact.ng0@cryptolab.net>
To: guix-devel@gnu.org
Subject: (guix git-download)
Date: Sun, 22 Jan 2017 19:51:34 +0000	[thread overview]
Message-ID: <87h94qhnzt.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> (raw)

Hi,

I'd like to change the git-download so that it supports
shallow-clone by default.

However I don't understand the current (guix git-download)
enough. Why is it all handled via environment variables?
I don't even see the "recursive" part in the git documentation
for environment variables.
The way it currently is, I can not easily extend the download
command to "git clone --depth 1 --shallow-submodules"

Info:

-depth <depth>

    Create a shallow clone with a history truncated to the
    specified number of commits. Implies --single-branch unless
    --no-single-branch is given to fetch the histories near the
    tips of all branches. If you want to clone submodules
    shallowly, also pass --shallow-submodules.
    
We don't need the whole history of a git checkout (or any version
control system).

Furthermore, I'd like to add a functionality to select a
branch/tag more easily than just by commit.
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/

             reply	other threads:[~2017-01-22 19:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-22 19:51 ng0 [this message]
2017-01-22 20:08 ` (guix git-download) Ricardo Wurmus
2017-01-22 23:23 ` Leo Famulari
2017-01-23 14:10   ` Ludovic Courtès
2017-01-29 22:22     ` ng0

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=87h94qhnzt.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me \
    --to=contact.ng0@cryptolab.net \
    --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).