all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Wingo <wingo@igalia.com>
To: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] scripts: hash: Add --git option.  WIP
Date: Tue, 28 Nov 2017 10:04:19 +0100	[thread overview]
Message-ID: <87mv36ydt8.fsf@igalia.com> (raw)
In-Reply-To: <87k1yhhcon.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Thu, 23 Nov 2017 04:54:48 +0100")

On Thu 23 Nov 2017 04:54, Jan Nieuwenhuizen <janneke@gnu.org> 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

  parent reply	other threads:[~2017-11-28  9:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-23  3:54 [PATCH] scripts: hash: Add --git option. WIP Jan Nieuwenhuizen
2017-11-24 13:34 ` Ludovic Courtès
2017-11-28  9:04 ` Andy Wingo [this message]
2017-11-28 18:57   ` Jan Nieuwenhuizen
2017-11-28 19:02     ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mv36ydt8.fsf@igalia.com \
    --to=wingo@igalia.com \
    --cc=guix-devel@gnu.org \
    --cc=janneke@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.