<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>A new request with request id 9016 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is : <br><br>Title : Koha-devel Digest, Vol 199, Issue 14<br>Category : <br>Description : <div>Send Koha-devel mailing list submissions to<br>    koha-devel@lists.koha-community.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>or, via email, send a message with subject or body 'help' to<br>    koha-devel-request@lists.koha-community.org<br><br>You can reach the person managing the list at<br>    koha-devel-owner@lists.koha-community.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Koha-devel digest..."<br><br><br>Today's Topics:<br><br>   1. Replace git-filter-branch with git-filter-repo (Jonathan Druart)<br>   2. Re: Replace git-filter-branch with git-filter-repo<br>      (Julian Maurice)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 16 Jun 2022 09:26:23 +0200<br>From: Jonathan Druart <jonathan.druart@bugs.koha-community.org><br>To: koha-devel <koha-devel@lists.koha-community.org><br>Subject: [Koha-devel] Replace git-filter-branch with git-filter-repo<br>Message-ID:<br>    <CAJzKNY5Ad10DQBygqDhgbM4YLgAm8zwY5cs4rSvq9+xGTft-Ow@mail.gmail.com><br>Content-Type: text/plain; charset="UTF-8"<br><br>Hi devs,<br><br>[I sent this on Aug 26th 2021 but it never reached the list!]<br><br>You may have seen the following warning when signing off on patches<br>using the git alias<br><br>"""<br>WARNING: git-filter-branch has a glut of gotchas generating mangled<br>history<br>         rewrites.  Hit Ctrl-C before proceeding to abort, then use an<br>         alternative filtering tool such as 'git filter-repo'<br>         (https://github.com/newren/git-filter-repo/) instead.  See<br>the<br>         filter-branch manual page for more details; to squelch this<br>warning,<br>         set FILTER_BRANCH_SQUELCH_WARNING=1.<br>Proceeding with filter-branch...<br>"""<br><br>And yes, it's very slow, `time git so 1` takes around 10 sec for me.<br><br>You can switch to git-filter-repo (https://github.com/newren/git-filter-repo).<br><br>First, install it (`pip3 install git-filter-repo` should do it,<br>otherwise read their install doc<br>https://github.com/newren/git-filter-repo/blob/main/INSTALL.md).<br><br>Then adjust the git alias (~/.gitconfig):<br><br>  so = "!f() { c=`expr $1 - 1`; git filter-repo --message-callback<br>'return message + b\"\\nSigned-off-by: Full Name <email>\"' --refs<br>HEAD~$c^..; }; f"<br><br>I am using 'so' but you may use something else as it's not what is on the wiki.<br>"Completely finished after 0.20 seconds."<br><br>Cheers,<br>Jonathan<br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 16 Jun 2022 10:00:12 +0200<br>From: Julian Maurice <julian.maurice@biblibre.com><br>To: koha-devel@lists.koha-community.org<br>Subject: Re: [Koha-devel] Replace git-filter-branch with<br>    git-filter-repo<br>Message-ID: <9d645755-9306-2cf2-59de-a2037b21450d@biblibre.com><br>Content-Type: text/plain; charset=UTF-8; format=flowed<br><br>Hi,<br><br>Just to add another way of doing it without installing a new tool:<br><br>I use `git rebase -x "git signoff" HEAD~<N>`<br>signoff is an alias to 'commit --amend -s --no-edit'<br><br>I didn't time it, but it always takes less than a second<br><br>So, to have the same 'so' alias:<br><br>so = "!f() { git rebase -x 'git commit --amend -s --no-edit' HEAD~$1; };f"<br><br>One of the benefit of this method is that you can re-run the same <br>command twice, it will add the signoff line only once.<br><br>Le 16/06/2022 à 09:26, Jonathan Druart a écrit :<br>> Hi devs,<br>> <br>> [I sent this on Aug 26th 2021 but it never reached the list!]<br>> <br>> You may have seen the following warning when signing off on patches<br>> using the git alias<br>> <br>> """<br>> WARNING: git-filter-branch has a glut of gotchas generating mangled<br>> history<br>>           rewrites.  Hit Ctrl-C before proceeding to abort, then use an<br>>           alternative filtering tool such as 'git filter-repo'<br>>           (https://github.com/newren/git-filter-repo/) instead.  See<br>> the<br>>           filter-branch manual page for more details; to squelch this<br>> warning,<br>>           set FILTER_BRANCH_SQUELCH_WARNING=1.<br>> Proceeding with filter-branch...<br>> """<br>> <br>> And yes, it's very slow, `time git so 1` takes around 10 sec for me.<br>> <br>> You can switch to git-filter-repo (https://github.com/newren/git-filter-repo).<br>> <br>> First, install it (`pip3 install git-filter-repo` should do it,<br>> otherwise read their install doc<br>> https://github.com/newren/git-filter-repo/blob/main/INSTALL.md).<br>> <br>> Then adjust the git alias (~/.gitconfig):<br>> <br>>    so = "!f() { c=`expr $1 - 1`; git filter-repo --message-callback<br>> 'return message + b\"\\nSigned-off-by: Full Name <email>\"' --refs<br>> HEAD~$c^..; }; f"<br>> <br>> I am using 'so' but you may use something else as it's not what is on the wiki.<br>> "Completely finished after 0.20 seconds."<br>> <br>> Cheers,<br>> Jonathan<br>> _______________________________________________<br>> Koha-devel mailing list<br>> Koha-devel@lists.koha-community.org<br>> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>> website : https://www.koha-community.org/<br>> git : https://git.koha-community.org/<br>> bugs : https://bugs.koha-community.org/<br><br>-- <br>Julian Maurice<br>BibLibre<br><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Koha-devel mailing list<br>Koha-devel@lists.koha-community.org<br>https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>website : https://www.koha-community.org/<br>git : https://git.koha-community.org/<br>bugs : https://bugs.koha-community.org/<br><br><br>------------------------------<br><br>End of Koha-devel Digest, Vol 199, Issue 14<br>*******************************************<br></div><br><br>NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.<br></body></html>