Hello! Andy Wingo <wi...@igalia.com> 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 foo > +@end example In this case -g is equivalent to -rx. > +Or even: > +@example > +$ guix hash -g http://example.org/foo.git > +@end example > @end table This one is indeed simpler. However, one typically needs to get the commit id in addition to the hash, so it seems that in practice, most of the time, we’d still need to do: git clone http://… cd foo git log | head -1 guix hash -rx . so we have both the commit id and the content hash. WDYT? Thanks, Ludo’.