1. 29 Apr, 2013 2 commits
    • Add git_oid_strcmp and use it for git_oid_streq · aa8f0101
      Add a new git_oid_strcmp that compares a string OID with a hex
      oid for sort order, and then reimplement git_oid_streq using it.
      This actually should speed up git_oid_streq because it only reads
      as far into the string as it needs to, whereas previously it would
      convert the whole string into an OID and then use git_oid_cmp.
      Russell Belfer committed
    • Fix fragile git_oid_ncmp · 8564a022
      git_oid_ncmp was making some assumptions about the length of
      the data - this shifts the check to the top of the loop so it
      will work more robustly, limits the max, and adds some tests
      to verify the functionality.
      Russell Belfer committed
  2. 25 Mar, 2013 1 commit
  3. 21 Mar, 2013 2 commits
  4. 19 Mar, 2012 1 commit
    • Migrate index, oid, and utils to new errors · 7c7ff7d1
      This includes a few cleanups that came up while converting
      these files.
      
      This commit introduces a could new git error classes, including
      the catchall class: GITERR_INVALID which I'm using as the class
      for invalid and out of range values which are detected at too low
      a level of library to use a higher level classification.  For
      example, an overflow error in parsing an integer or a bad letter
      in parsing an OID string would generate an error in this class.
      Russell Belfer committed
  5. 25 Jan, 2012 1 commit
  6. 13 Oct, 2011 1 commit