From patchwork Fri Apr 23 07:17:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?RnJhbsOnb2lz?= X-Patchwork-Id: 29090 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0645227BC82; Mon, 3 May 2021 20:40:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 79C3527BC81 for ; Mon, 3 May 2021 20:40:18 +0100 (BST) Received: from localhost ([::1]:43088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldeQT-00025h-IO for patchwork@mira.cbaines.net; Mon, 03 May 2021 15:40:17 -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?b?RnJhbsOnb2lz?= 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?b?RnJhbsOnb2lz?= J Date: Fri, 23 Apr 2021 09:17:17 +0200 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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.