diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2012-03-06 16:14:31 -0800 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-06 16:27:13 -0800 |
| commit | ae9e29fde7e7d1c0c3e95bdabbb5c96fc71b1c71 (patch) | |
| tree | 65d8215f898fc30b579b72d815e6adc78823dd6c /src/util.h | |
| parent | cb8a79617b15e347f26d21cedde0f2b8670c1876 (diff) | |
| download | libgit2-ae9e29fde7e7d1c0c3e95bdabbb5c96fc71b1c71.tar.gz | |
Migrating diff to new error handling
Ended up migrating a bunch of upstream functions as well
including vector, attr_file, and odb in order to get this
to work right.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 803c63d73..01755b59e 100644 --- a/src/util.h +++ b/src/util.h @@ -115,6 +115,11 @@ extern int git__fnmatch(const char *pattern, const char *name, int flags); extern void git__tsort(void **dst, size_t size, int (*cmp)(const void *, const void *)); +/** + * @param position If non-NULL, this will be set to the position where the + * element is or would be inserted if not found. + * @return pos (>=0) if found or -1 if not found + */ extern int git__bsearch( void **array, size_t array_len, |
