Created
April 11, 2025 01:49
-
-
Save s1037989/cf27a0f89164c12b80933722269adfc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git log --pretty=format:"%H %d%n%s%n%b%n---" | perl -Mojo -E 'b(<STDIN>)->split("\n\n---")->map(sub{s/^\n//s; b($_)->split("\n",2)->tap(sub{warn $_->[0]; $_->[0] =~ /^([0-9a-f]+)\s+(\(([^\)]+)\))?$/; $_=c($1//"",$2//"",$_->[1]//"")->join("\n")})})->join("\n---\n")->say' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment