public bool HasObject(string sha) { var id = new ObjectId(sha); IntPtr odb = NativeMethods.git_repository_database(handle); GitOid oid = id.Oid; return NativeMethods.git_odb_exists(odb, ref oid); }