I would add it to `oid.c` right below `git_oid_fmt`.