Permalink
Browse files

Add read/write support for long-sha

  • Loading branch information...
Chouser committed Dec 23, 2013
1 parent 9db18a8 commit fd6667b29161e026478b7e716a4b0d1099f3a59e
Showing with 7 additions and 0 deletions.
  1. +1 −0 data_readers.clj
  2. +1 −0 src/data_readers.clj
  3. +5 −0 src/leiningen/voom/long_sha.clj
View
View
@@ -0,0 +1 @@
+{sha/mk leiningen.voom.long-sha/mk}
@@ -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.