Andy Wingo <wi...@igalia.com> 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 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’.