Minor fixes for ignorecase support

This commit is contained in:
Philip Kelley 2012-09-17 16:10:42 -04:00
parent ec40b7f99f
commit f08c60a518
3 changed files with 4 additions and 2 deletions

View File

@ -60,6 +60,8 @@ int git_attr_file__parse_buffer(
char *context = NULL;
git_attr_rule *rule = NULL;
GIT_UNUSED(parsedata);
assert(buffer && attrs);
scan = buffer;

View File

@ -714,7 +714,7 @@ static int diff_from_iterators(
* (or ADDED and DELETED pair if type changed)
*/
else {
assert(oitem && nitem && entry_compare(oitem->path, nitem->path) == 0);
assert(oitem && nitem && entry_compare(oitem, nitem) == 0);
if (maybe_modified(old_iter, oitem, new_iter, nitem, diff) < 0 ||
git_iterator_advance(old_iter, &oitem) < 0 ||

View File

@ -11,7 +11,7 @@
#include "git2/index.h"
#include "vector.h"
#define ITERATOR_PREFIXCMP(ITER, STR, PREFIX) (((ITER) ## .ignore_case) ? \
#define ITERATOR_PREFIXCMP(ITER, STR, PREFIX) (((ITER).ignore_case) ? \
git__prefixcmp_icase((STR), (PREFIX)) : \
git__prefixcmp((STR), (PREFIX)))