russell/cl-git — pull request #6 by woudshoo (2012-05-01 07:00:35+00:00)
Title: Added custom type translaters for oid --> number

Russell,

I have played a bit with custom type translators and this is my initial attempt.
Note that this is the first time I have actually used them and have not
tested the code much.

What I have done is the following:

- OID are translated into lisp integers. In such a way that, as far as I can tell

(format t "~40,'0X" lisp-integer-oid)

is the same (upto capitialization) as

(%git-oid-tostr real-oid)

- As a small bonus, it should also work to specify the oid as a hex string
for functions which accept a oid instead of only an integer.

Hope this gives some inspiration and let me know if you have some
design inspiration.

Kind regards,
Wim Oudshoorn