Skip to content

Commit

Permalink
contributors: use "%aN" instead of "%an" to respect mailmap file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Aug 3, 2024
1 parent 078592b commit ce0fe38
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions extra/contributors/contributors.factor
Original file line number Diff line number Diff line change
@@ -1,37 +1,16 @@
! Copyright (C) 2007, 2008 Slava Pestov, 2020 Alexander Ilin.
! See https://factorcode.org/license.txt for BSD license.
USING: assocs fry io io.directories io.encodings.utf8
io.launcher io.pathnames kernel math.statistics prettyprint
sequences sorting system ;
USING: io.directories io.launcher io.pathnames math.statistics
prettyprint sorting system ;
IN: contributors

CONSTANT: aliases {
{ "Alexander Ilin" "Alexander Iljin" }
{ "Björn Lindqvist" "[email protected]" }
{ "Cat Stevens" "catb0t" }
{ "Daniel Ehrenberg" "Dan Ehrenberg" }
{ "Doug Coleman" "U-FROGGER\\erg" "erg" }
{ "Erik Charlebois" "erikc" }
{ "KUSUMOTO Norio" "kusumotonorio" }
{ "Mighty Sheeple" "sheeple" "U-ENCHILADA\\sheeple" }
{ "Nicolas Pénet" "nicolas-p" }
{ "Slava Pestov" "slava" "Slava"
"U-SLAVA-FB3999113\\Slava" "U-SLAVA-DFB8FF805\\Slava" }
{ "dharmatech" "U-CUTLER\\dharmatech" }
}

: changelog ( -- authors )
image-path parent-directory [
"git log --no-merges --pretty=format:%an" process-lines
"git log --no-merges --pretty=format:%aN" process-lines
] with-directory ;

: merge-aliases ( authors -- authors' )
aliases [
unclip '[ over delete-at* [ _ pick at+ ] [ drop ] if ] each
] each ;

: contributors ( -- )
changelog histogram merge-aliases
changelog histogram
inv-sort-values
simple-table. ;

Expand Down

0 comments on commit ce0fe38

Please sign in to comment.