[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] scripts: hash: Add --git option. WIP
From: |
Andy Wingo |
Subject: |
Re: [PATCH] scripts: hash: Add --git option. WIP |
Date: |
Tue, 28 Nov 2017 10:04:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
On Thu 23 Nov 2017 04:54, Jan Nieuwenhuizen <address@hidden> writes:
> Hi!
>
> Attached is a patch to get the hash of a git archive without having to
> clean the tree or do a clean checkout.
>
> Using
>
> guix hash -gr .
>
> procudes the same hash as doing something like
>
> git clone . tmp && guix hash -rx tmp && rm -r tmp
>
> I marked it as WIP because while it is already "handy" as it is, I
> consider adding a commit argument and imply --recursive, like so
>
> guix hash --git HEAD
> guix hash --git v0.13
>
> WDYT?
Weird that we have done the same thing :)
https://git.savannah.gnu.org/gitweb/?p=guix.git;a=commit;h=572907daff98a77a4215861a88b81d2f30542c09
Andy