factor/extra/contributors/contributors.factor

19 lines
530 B
Factor
Raw Normal View History

2008-11-30 19:04:44 -05:00
! Copyright (C) 2007, 2008 Slava Pestov.
2007-09-20 18:09:08 -04:00
! See http://factorcode.org/license.txt for BSD license.
USING: io io.directories io.encodings.utf8 io.launcher io.pathnames
math.statistics prettyprint sequences sorting system ;
2007-09-20 18:09:08 -04:00
IN: contributors
2007-10-08 22:28:22 -04:00
: changelog ( -- authors )
image-path parent-directory [
"git log --no-merges --pretty=format:%an"
utf8 [ lines ] with-process-reader
2008-04-04 10:17:33 -04:00
] with-directory ;
2007-09-20 18:09:08 -04:00
: contributors ( -- )
changelog histogram
2008-11-30 19:04:44 -05:00
sort-values <reversed>
simple-table. ;
2007-09-20 18:09:08 -04:00
MAIN: contributors