variable renaming
This commit is contained in:
@@ -260,18 +260,18 @@ int
|
|||||||
Index_contains(Index *self, PyObject *value)
|
Index_contains(Index *self, PyObject *value)
|
||||||
{
|
{
|
||||||
char *path;
|
char *path;
|
||||||
int idx;
|
int err;
|
||||||
|
|
||||||
path = py_path_to_c_str(value);
|
path = py_path_to_c_str(value);
|
||||||
if (!path)
|
if (!path)
|
||||||
return -1;
|
return -1;
|
||||||
idx = git_index_find(NULL, self->index, path);
|
err = git_index_find(NULL, self->index, path);
|
||||||
if (idx == GIT_ENOTFOUND) {
|
if (err == GIT_ENOTFOUND) {
|
||||||
free(path);
|
free(path);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (idx < 0) {
|
if (err < 0) {
|
||||||
Error_set_str(idx, path);
|
Error_set_str(err, path);
|
||||||
free(path);
|
free(path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user