From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Wingo Subject: Re: [PATCH] scripts: hash: Add --git option. WIP Date: Tue, 28 Nov 2017 10:04:19 +0100 Message-ID: <87mv36ydt8.fsf@igalia.com> References: <87k1yhhcon.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJbpF-0002RJ-As for guix-devel@gnu.org; Tue, 28 Nov 2017 04:05:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJbp9-00026Q-NI for guix-devel@gnu.org; Tue, 28 Nov 2017 04:05:09 -0500 In-Reply-To: <87k1yhhcon.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Thu, 23 Nov 2017 04:54:48 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Jan Nieuwenhuizen Cc: guix-devel@gnu.org On Thu 23 Nov 2017 04:54, Jan Nieuwenhuizen 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