Implicit Operator: GitOid => ObjectId#357
Conversation
Also, support marshaling NULL in OidSafeHandle
|
Although I'm usually not a big fan of implicit cast (hard to discover and tend to make the code somewhat surprising to read/review), this one can't bite the consumer of the library and cuts off some code noise. Beside this, the two types bear the exact same meaning 👍 Merged! ❤️ |
That was my thought process behind implicit How do you feel about explicit casts? Specifically, it might be useful to have one for |
👍 |
The only thing we ever do with a
GitOidis turn it into anObjectId, so I figure we might as well make the conversion trivial (andnull-friendly, as I have found I need with submodules).