diff options
author | Vicent Martà <vicent@github.com> | 2013-05-15 08:31:37 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-05-15 08:31:37 -0700 |
commit | 86c6f74a79ef61582b636d478a9852ae54d87e2e (patch) | |
tree | f1c4e33497c216c333dc0133d8a15fcd137c358b /src/notes.c | |
parent | bc2020d64869aa19a88b71aee33a24b54c178dab (diff) | |
parent | 0cb16fe924fb5c4e58866c28b06ace876e2dcbd3 (diff) | |
download | libgit2-86c6f74a79ef61582b636d478a9852ae54d87e2e.tar.gz |
Merge pull request #1583 from linquize/whitespace
Unify whitespaces to tabs
Diffstat (limited to 'src/notes.c')
-rw-r--r-- | src/notes.c | 38 |
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(¬e_id, &annotated_id, iter))) { - if (note_cb(¬e_id, &annotated_id, payload)) { - error = GIT_EUSER; - break; - } - } + while (!(error = git_note_next(¬e_id, &annotated_id, iter))) { + if (note_cb(¬e_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; } |