From: "François J" <francois-oss@avalenn.eu>
To: 47968@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#47968] [PATCH] gnu: Add git-filter-repo
Date: Fri, 23 Apr 2021 09:17:17 +0200 [thread overview]
Message-ID: <bbfe693bd469ea81018314f59f55ccd42fb31525.1620070335.git.francois-oss@avalenn.eu> (raw)
In-Reply-To: <87lf8vwz1d.fsf_-_@gnu.org>
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 <francois-oss@avalenn.eu>
---
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 <lle-bout@zaclys.net>
;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
+;;; Copyright © 2021 François J. <francois-oss@avalenn.eu>
;;;
;;; 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
next prev parent reply other threads:[~2021-05-03 19:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-23 9:01 [bug#47968] [PATCH 0/2] Add git-filter-repo François J
2021-04-23 7:05 ` [bug#47968] [PATCH 1/2] gnu: git: add a comment on why we don't build manpages François J
2021-04-23 7:17 ` [bug#47968] [PATCH 2/2] gnu: Add git-filter-repo François J
2021-05-03 16:41 ` [bug#47968] [PATCH 0/2] " Ludovic Courtès
2021-04-23 7:17 ` François J [this message]
2021-05-03 20:46 ` bug#47968: " Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bbfe693bd469ea81018314f59f55ccd42fb31525.1620070335.git.francois-oss@avalenn.eu \
--to=francois-oss@avalenn.eu \
--cc=47968@debbugs.gnu.org \
--cc=ludo@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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).