git: Do not add '.git' to the store.
authorLudovic Courtès <ludo@gnu.org>
Tue, 21 Nov 2017 14:25:57 +0000 (15:25 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 21 Nov 2017 22:09:16 +0000 (23:09 +0100)
commitfe9b3ec3ee208c5bac7844f3d0fecce2c6b1297d
treef934d66394478fc7e25c5830ac08babaa03a3a11
parenta6591381fc1f5e1890efb8270a3671062249c2bc
git: Do not add '.git' to the store.

This makes 'latest-repository-commit' significantly more efficient and
reduces disk usage in the store.

* guix/git.scm (copy-to-store)[dot-git?]: New procedure.
Pass it as the #:select? argument to 'add-to-store'.
guix/git.scm