From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: (guix git-download) Date: Sun, 22 Jan 2017 19:51:34 +0000 Message-ID: <87h94qhnzt.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> 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]:47392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVO9m-0001ar-Dy for guix-devel@gnu.org; Sun, 22 Jan 2017 14:50:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVO9h-0002St-Sb for guix-devel@gnu.org; Sun, 22 Jan 2017 14:50:30 -0500 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" To: guix-devel@gnu.org 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 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. =20 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. --=20 =E2=99=A5=E2=92=B6 ng0 -- https://www.inventati.org/patternsinthechaos/