diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:48:50 +0200 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:48:50 +0200 |
commit | 904b67e69fa15b7a3246e43b3d78645ffa2331f6 (patch) | |
tree | 3be54c31248759ba27a08cef52558385116d9b19 /src/index.c | |
parent | e172cf082e62aa421703080d0bccb7b8762c8bd4 (diff) | |
download | libgit2-breaking-changes.tar.gz |
errors: Rename error codesbreaking-changes
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index 03b191356..f1ae9a710 100644 --- a/src/index.c +++ b/src/index.c @@ -411,7 +411,7 @@ static int index_insert(git_index *index, git_index_entry *entry, int replace) * if no entry exists add the entry at the end; * the index is no longer sorted */ - if (position == GIT_NOTFOUND) + if (position == GIT_ENOTFOUND) return git_vector_insert(&index->entries, entry); /* exists, replace it */ |