From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cJsvM6NRkGAdvQAAgWs5BA (envelope-from ) for ; Mon, 03 May 2021 21:40:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AOq5LqNRkGBTEQAAbx9fmQ (envelope-from ) for ; Mon, 03 May 2021 19:40:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 68F812DFC5 for ; Mon, 3 May 2021 21:40:19 +0200 (CEST) Received: from localhost ([::1]:43088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldeQU-00025h-8a for larch@yhetil.org; Mon, 03 May 2021 15:40:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldeQE-000254-DE for guix-patches@gnu.org; Mon, 03 May 2021 15:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldeQD-0002cZ-R1 for guix-patches@gnu.org; Mon, 03 May 2021 15:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldeQD-0004R1-OQ for guix-patches@gnu.org; Mon, 03 May 2021 15:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47968] [PATCH] gnu: Add git-filter-repo Resent-From: =?UTF-8?Q?Fran=C3=A7ois?= J Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 May 2021 19:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47968 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47968@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 47968-submit@debbugs.gnu.org id=B47968.162007075217036 (code B ref 47968); Mon, 03 May 2021 19:40:01 +0000 Received: (at 47968) by debbugs.gnu.org; 3 May 2021 19:39:12 +0000 Received: from localhost ([127.0.0.1]:48311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldePP-0004Qi-VJ for submit@debbugs.gnu.org; Mon, 03 May 2021 15:39:12 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:52029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldePO-0004Qc-6M for 47968@debbugs.gnu.org; Mon, 03 May 2021 15:39:10 -0400 X-Originating-IP: 88.126.13.52 Received: from localhost (unknown [88.126.13.52]) (Authenticated sender: francois@avalenn.eu) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id AA98120008; Mon, 3 May 2021 19:39:02 +0000 (UTC) X-Mailbox-Line: From bbfe693bd469ea81018314f59f55ccd42fb31525 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: <87lf8vwz1d.fsf_-_@gnu.org> References: <87lf8vwz1d.fsf_-_@gnu.org> From: =?UTF-8?Q?Fran=C3=A7ois?= J Date: Fri, 23 Apr 2021 09:17:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620070819; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=tnnB1x5YOIjMg9WCiG28awvw3O7zZUZ4ke5Ndu5UUJQ=; b=ttq+g6eb/ZXBtRUt5N03GsMrEk/SFDAvcp3ghbyA4TCRVevCsxaE3wjmmkz+DPLqJUi3LU g0EvslELvz9L8893/STPPe0z0k6ssiChAoiUQD2oxOOBVKJ7F7YCby7aYjp/YIFom3DCg3 WMm7ukmFeSfn9TkF0eGNlx168sH2hGfO9/xMavxVSdPXlhSX7eBlca7qq/efnNMyUmxiCK wRdythNe7x7O9LXWmsZyu8iErUGY9HYn8cxY7CIpm4cMbaHKtaKmAwXrZ6TV4BEeCX5f9j kW/s+qLqmH1/VbM5+rl5au77WayaykZERiWWpuAAQUnr1mFVEhcx8XuIFoaWsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620070819; a=rsa-sha256; cv=none; b=Y4qoMDj3okGElKHgSh+mBi/JDmm3Vb40u5TaftvP4Qb+YNQlvMbslxS4Gmj+k5dR4hGFTR 1pwJ2l3IrSsg+GjbzaszqTTXL8Zd5WnO7XIv9Ag4FUDxltZXE/VxA6L936dBEh9zAMZGC5 /FVZMhcm3p1KyzD15IdcDS9zMlv2DPllovUCheGUQ/6kutWz5TWjR4vKaXUuq/kWOhqhZq XTQVvrG50hFW9PVzdy4xYd27Bt7vp5g1vB0Q2/Ygt3e316ta/4Pj2W4lJJdUuOKewkklCZ xbPqb3hVlgpbZ+eNLyDOyFl+EvYk/YoV7BHWvDsLiCLZfT7/AujXLy75wv4CGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 68F812DFC5 X-Spam-Score: -0.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: BJVRBxI6+yh/ I use release tarball (instead of git as I would have liked) because it contains pre-compiled man-pages which are too hard to build in this context as it uses git Makefile to do it. * gnu/packages/version-control.scm (git-filter-repo): New variable. Signed-off-by: François J --- gnu/packages/version-control.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) I changed the description by taking a more complete one from upstream. I have chosen to not capitalize the "git" in "git filter-repo" to respect upstream capitalization but have no opinion on the matter. diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index fddabbcd40..4460c1c548 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -38,6 +38,7 @@ ;;; Copyright © 2021 Léo Le Bouter ;;; Copyright © 2021 LibreMiami ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 2021 François J. ;;; ;;; This file is part of GNU Guix. ;;; @@ -3074,3 +3075,31 @@ If several repos are related, it helps to see their status together.") makes a directory under a specific root directory (by default @file{~/ghq}) using the remote repository URL's host and path.") (license license:expat))) + +(define-public git-filter-repo + (package + (name "git-filter-repo") + (version "2.29.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/newren/git-filter-repo/releases/" + "download/v" version + "/git-filter-repo-" version ".tar.xz")) + (sha256 + (base32 + "00nn7k9jqrybb762486fmigsnbcn9lbvimgpfvvarz4ikdp9y9pb")))) + (build-system copy-build-system) + (arguments + `(#:install-plan + '(("git-filter-repo" "libexec/git-core/") + ("Documentation/man1/" "share/man/man1") + ("/" "" #:include ())))) + (home-page + "https://github.com/newren/git-filter-repo") + (synopsis + "Quickly rewrite Git repository history") + (description + "git filter-repo is a versatile tool for rewriting history, which roughly falls into the same space of tool like git filter-branch but with more capabilities. git filter-repo is now recommended by the Git project instead of git filter-branch.") + (license (list license:expat ;; Main license. + license:gpl2)))) ;; For test harness. -- 2.31.1