From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH] scripts: hash: Add --exclude-.git option. Date: Mon, 5 Sep 2016 16:52:38 -0400 Message-ID: <20160905205238.GF3392@jasmine> References: <87zinmybwv.fsf@gnu.org> <20160905224923.13e5a3ba@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh0sx-0007ri-H3 for guix-devel@gnu.org; Mon, 05 Sep 2016 16:52:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bh0ss-0007Fk-7V for guix-devel@gnu.org; Mon, 05 Sep 2016 16:52:53 -0400 Content-Disposition: inline In-Reply-To: <20160905224923.13e5a3ba@scratchpost.org> 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: Danny Milosavljevic Cc: guix-devel@gnu.org On Mon, Sep 05, 2016 at 10:49:23PM +0200, Danny Milosavljevic wrote: > Hi Jan, > > On Mon, 05 Sep 2016 10:43:28 +0200 > Jan Nieuwenhuizen wrote: > > Added an -g/--exclude-.git option for guix hash. It is very specific: > > it skips toplevel .git directory. > > Why? To calculate the hash of a source that is a Git repository, one clones the Git repository, checks out the desired commit, removes the '.git' metadata directory, and then runs `guix hash -r` on the remaining Git tree. If the Git repository is very large, it's tedious to make a copy or re-clone it in order to experiment with different commits. It would be easier if `guix hash` could skip the '.git' metadata in that case.