Thanks to visit codestin.com Credit goes to libgit2.org
Get the OID of the source If the OID is unknown (often the case with GIT_FILTER_CLEAN) then this will return NULL.