Skip to content

Commit

Permalink
Add read/write support for long-sha
Browse files Browse the repository at this point in the history
  • Loading branch information
Chouser committed Dec 23, 2013
1 parent 9db18a8 commit fd6667b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions data_readers.clj
1 change: 1 addition & 0 deletions src/data_readers.clj
@@ -0,0 +1 @@
{sha/mk leiningen.voom.long-sha/mk}
5 changes: 5 additions & 0 deletions src/leiningen/voom/long_sha.clj
Expand Up @@ -74,3 +74,8 @@
(read [_ rdr tag component-count]
(LongSha. (.readInt rdr)))))
fress/associative-lookup))

(defmethod print-method LongSha [o ^java.io.Writer w]
(.write w "#sha/mk \"")
(.write w (str o))
(.write w "\""))

0 comments on commit fd6667b

Please sign in to comment.