Hide the OID pointed to by a reference
The reference must point to a commit.
the walker being used for the traversal
the reference to hide
0 or an error code