Re: [PATCH] guix hash: -g hashes a git repository

2017-04-05 Thread Christopher Allan Webber
Andy Wingo writes: > + (pk "git" "clone" file checkout) > + (recursive-hash checkout) One of those cursed pk's made it in here. Exciting! Look forward to having this option.

Re: [PATCH] guix hash: -g hashes a git repository

2017-04-05 Thread Ludovic Courtès
Andy Wingo skribis: > On Tue 04 Apr 2017 14:21, l...@gnu.org (Ludovic Courtès) writes: > >>> +For example: >>> +@example >>> +$ git clone http://example.org/foo.git >>> +$ guix hash -g foo >>> +@end example >> >> In this case -g is equivalent to -rx. > > My main use case is when I am in a git che

Re: [PATCH] guix hash: -g hashes a git repository

2017-04-04 Thread Andy Wingo
On Tue 04 Apr 2017 14:21, l...@gnu.org (Ludovic Courtès) writes: >> +For example: >> +@example >> +$ git clone http://example.org/foo.git >> +$ guix hash -g foo >> +@end 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 ot

Re: [PATCH] guix hash: -g hashes a git repository

2017-04-04 Thread Ludovic Courtès
Hello! Andy Wingo skribis: > * guix/scripts/hash.scm (show-help, %options): Add -g option. > (guix-hash): Support hashing of Git URLs. > * doc/guix.texi (Invoking guix hash): Document guix hash --git. [...] > +For example: > +@example > +$ git clone http://example.org/foo.git > +$ guix hash -g