]> git.proxmox.com Git - libgit2.git/commit - src/util.c
Migrate index, oid, and utils to new errors
authorRussell Belfer <arrbee@arrbee.com>
Mon, 19 Mar 2012 23:10:11 +0000 (16:10 -0700)
committerRussell Belfer <arrbee@arrbee.com>
Mon, 19 Mar 2012 23:10:11 +0000 (16:10 -0700)
commit7c7ff7d11e2d22f7b9c7f8152f5c58dde37ac207
tree838380af916490eb68e3004bc3ec10cc7ac8cf1f
parentfd7714273cb9646d63f4da8d81450a0f9f9295f5
Migrate index, oid, and utils to new errors

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.
include/git2/errors.h
src/fileops.c
src/index.c
src/index.h
src/iterator.c
src/oid.c
src/util.c
tests-clar/core/oid.c