Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-18 03:48:50 +0400
committerVicent Martí <tanoku@gmail.com>2012-05-18 03:48:50 +0400
commit904b67e69fa15b7a3246e43b3d78645ffa2331f6 (patch)
tree3be54c31248759ba27a08cef52558385116d9b19 /src/notes.c
parente172cf082e62aa421703080d0bccb7b8762c8bd4 (diff)
errors: Rename error codesbreaking-changes
Diffstat (limited to 'src/notes.c')
-rw-r--r--src/notes.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/notes.c b/src/notes.c
index afd6fc23d..84ad94087 100644
--- a/src/notes.c
+++ b/src/notes.c
@@ -73,7 +73,7 @@ static int find_blob(git_oid *blob, git_tree *tree, const char *target)
return 0;
}
}
- return GIT_NOTFOUND;
+ return GIT_ENOTFOUND;
}
static int note_write(git_oid *out, git_repository *repo,
@@ -96,11 +96,11 @@ static int note_write(git_oid *out, git_repository *repo,
return error;
error = find_blob(&oid, tree, target + fanout);
- if (error != GIT_NOTFOUND) {
+ if (error != GIT_ENOTFOUND) {
git_tree_free(tree);
if (!error) {
giterr_set(GITERR_REPOSITORY, "Note for '%s' exists already", target);
- error = GIT_EXISTS;
+ error = GIT_EEXISTS;
}
return error;
}
@@ -275,7 +275,7 @@ static int note_get_default_ref(const char **out, git_repository *repo)
return -1;
ret = git_config_get_string(out, cfg, "core.notesRef");
- if (ret == GIT_NOTFOUND) {
+ if (ret == GIT_ENOTFOUND) {
*out = GIT_NOTES_DEFAULT_REF;
return 0;
}
@@ -352,7 +352,7 @@ int git_note_create(
return -1;
error = git_reference_lookup(&ref, repo, notes_ref);
- if (error < 0 && error != GIT_NOTFOUND)
+ if (error < 0 && error != GIT_ENOTFOUND)
return error;
if (!error) {