[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] guix hash: -g hashes a git repository
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] guix hash: -g hashes a git repository |
Date: |
Wed, 05 Apr 2017 23:06:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Andy Wingo <address@hidden> skribis:
> On Tue 04 Apr 2017 14:21, address@hidden (Ludovic Courtès) writes:
>
>>> +For example:
>>> address@hidden
>>> +$ git clone http://example.org/foo.git
>>> +$ guix hash -g foo
>>> address@hidden example
>>
>> In this case -g is equivalent to -rx.
>
> My main use case is when I am in a git checkout that has build products
> or other stuff. Then I can "guix hash -g .". Easier than making a temp
> dir, clone, hash, then delete.
Oh right, I hadn't realized that it would exclude untracked files etc.
Definitely an improvement!
> > so we have both the commit id and the content hash.
> >
> > WDYT?
>
> Could be! Or "git rev-parse HEAD". I'll do that.
Awesome.
Thanks,
Ludo’.