Sha256: df14131bbb86e7ad560aeae97bdff4baf27753a3ff4729c3fcaf78755c00fe8f
Contents?: true
Size: 776 Bytes
Versions: 4
Compression:
Stored size: 776 Bytes
Contents
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #ifndef INCLUDE_oid_h__ #define INCLUDE_oid_h__ #include "git2/oid.h" GIT_INLINE(int) git_oid__hashcmp(const unsigned char *sha1, const unsigned char *sha2) { int i; for (i = 0; i < GIT_OID_RAWSZ; i++, sha1++, sha2++) { if (*sha1 != *sha2) return *sha1 - *sha2; } return 0; } /* * Compare two oid structures. * * @param a first oid structure. * @param b second oid structure. * @return <0, 0, >0 if a < b, a == b, a > b. */ GIT_INLINE(int) git_oid__cmp(const git_oid *a, const git_oid *b) { return git_oid__hashcmp(a->id, b->id); } #endif
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rugged-0.21.4 | vendor/libgit2/src/oid.h |
rugged-0.21.3 | vendor/libgit2/src/oid.h |
rugged-0.21.2 | vendor/libgit2/src/oid.h |
rugged-0.21.0 | vendor/libgit2/src/oid.h |