summaryrefslogtreecommitdiff
path: root/src/notes.c
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-05-15 20:26:55 +0800
committerLinquize <linquize@yahoo.com.hk>2013-05-15 20:26:55 +0800
commit0cb16fe924fb5c4e58866c28b06ace876e2dcbd3 (patch)
treef1c4e33497c216c333dc0133d8a15fcd137c358b /src/notes.c
parentbc2020d64869aa19a88b71aee33a24b54c178dab (diff)
downloadlibgit2-0cb16fe924fb5c4e58866c28b06ace876e2dcbd3.tar.gz
Unify whitespaces to tabs
Diffstat (limited to 'src/notes.c')
-rw-r--r--src/notes.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/notes.c b/src/notes.c
index 4ca2aaa63..3e3db58db 100644
--- a/src/notes.c
+++ b/src/notes.c
@@ -579,30 +579,30 @@ cleanup:
}
int git_note_foreach(
- git_repository *repo,
- const char *notes_ref,
- git_note_foreach_cb note_cb,
- void *payload)
+ git_repository *repo,
+ const char *notes_ref,
+ git_note_foreach_cb note_cb,
+ void *payload)
{
- int error;
- git_note_iterator *iter = NULL;
- git_oid note_id, annotated_id;
+ int error;
+ git_note_iterator *iter = NULL;
+ git_oid note_id, annotated_id;
- if ((error = git_note_iterator_new(&iter, repo, notes_ref)) < 0)
- return error;
+ if ((error = git_note_iterator_new(&iter, repo, notes_ref)) < 0)
+ return error;
- while (!(error = git_note_next(&note_id, &annotated_id, iter))) {
- if (note_cb(&note_id, &annotated_id, payload)) {
- error = GIT_EUSER;
- break;
- }
- }
+ while (!(error = git_note_next(&note_id, &annotated_id, iter))) {
+ if (note_cb(&note_id, &annotated_id, payload)) {
+ error = GIT_EUSER;
+ break;
+ }
+ }
- if (error == GIT_ITEROVER)
- error = 0;
+ if (error == GIT_ITEROVER)
+ error = 0;
- git_note_iterator_free(iter);
- return error;
+ git_note_iterator_free(iter);
+ return error;
}