git: Increase modularity and expose 'update-cached-checkout'.
authorLudovic Courtès <ludo@gnu.org>
Mon, 2 Apr 2018 21:11:07 +0000 (23:11 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 2 Apr 2018 21:16:30 +0000 (23:16 +0200)
commit9188198692e3899ed9179af73cf721c19bb05db4
treeef29036dfab012ab0007dff48d27f279f99b98b8
parent576f245c2d65f8a665ddc6936f229a669fbc4597
git: Increase modularity and expose 'update-cached-checkout'.

* guix/git.scm (repository->head-sha1, copy-to-store): Remove.
(switch-to-ref): Return the OID of OBJ.
(update-cached-checkout): New procedure, with code from
'latest-repository-commit'.
(latest-repository-commit): Use it.
guix/git.scm