Parse formats to symbol
This commit is contained in:
parent
f920fb678b
commit
eebd1b219a
2 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,8 @@
|
|||
compute-legit-comments compute-bogus-comments))
|
||||
|
||||
(define *comment-spec*
|
||||
`((timestamp . ,string->number)))
|
||||
`((timestamp . ,string->number)
|
||||
(format . ,string->symbol)))
|
||||
|
||||
(define (blob->comment encoded-name sha1)
|
||||
(let ((blob (git "show" sha1)))
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
`((timestamp . ,string->number)
|
||||
(tags . ,(lambda (v) (string-split/trimming v #\,)))
|
||||
(title . ,identity)
|
||||
(format . ,string->symbol)
|
||||
(comments-closed-timestamp . ,(lambda (str)
|
||||
(if (string-null? str)
|
||||
#f
|
||||
|
|
Loading…
Reference in a new issue