mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-22 02:23:22 +00:00
notes.c - whitespace fix
This commit is contained in:
parent
b8a1ea7cf9
commit
b421decc76
12
src/notes.c
12
src/notes.c
@ -129,10 +129,10 @@ static int manipulate_note_in_tree_r(
|
|||||||
git_tree *parent,
|
git_tree *parent,
|
||||||
git_oid *note_oid,
|
git_oid *note_oid,
|
||||||
const char *annotated_object_sha,
|
const char *annotated_object_sha,
|
||||||
int fanout,
|
int fanout,
|
||||||
int (*note_exists_cb)(
|
int (*note_exists_cb)(
|
||||||
git_tree **out,
|
git_tree **out,
|
||||||
git_repository *repo,
|
git_repository *repo,
|
||||||
git_tree *parent,
|
git_tree *parent,
|
||||||
git_oid *note_oid,
|
git_oid *note_oid,
|
||||||
const char *annotated_object_sha,
|
const char *annotated_object_sha,
|
||||||
@ -147,7 +147,7 @@ static int manipulate_note_in_tree_r(
|
|||||||
int fanout,
|
int fanout,
|
||||||
int current_error))
|
int current_error))
|
||||||
{
|
{
|
||||||
int error = -1;
|
int error = -1;
|
||||||
git_tree *subtree = NULL, *new = NULL;
|
git_tree *subtree = NULL, *new = NULL;
|
||||||
char subtree_name[3];
|
char subtree_name[3];
|
||||||
|
|
||||||
@ -275,7 +275,7 @@ static int note_write(git_oid *out,
|
|||||||
int error;
|
int error;
|
||||||
git_oid oid;
|
git_oid oid;
|
||||||
git_tree *tree = NULL;
|
git_tree *tree = NULL;
|
||||||
|
|
||||||
// TODO: should we apply filters?
|
// TODO: should we apply filters?
|
||||||
/* create note object */
|
/* create note object */
|
||||||
if ((error = git_blob_create_frombuffer(&oid, repo, note, strlen(note))) < 0)
|
if ((error = git_blob_create_frombuffer(&oid, repo, note, strlen(note))) < 0)
|
||||||
@ -351,7 +351,7 @@ static int note_remove(git_repository *repo,
|
|||||||
int error;
|
int error;
|
||||||
git_tree *tree_after_removal = NULL;
|
git_tree *tree_after_removal = NULL;
|
||||||
git_oid oid;
|
git_oid oid;
|
||||||
|
|
||||||
if ((error = manipulate_note_in_tree_r(
|
if ((error = manipulate_note_in_tree_r(
|
||||||
&tree_after_removal, repo, tree, NULL, target, 0,
|
&tree_after_removal, repo, tree, NULL, target, 0,
|
||||||
remove_note_in_tree_eexists_cb, remove_note_in_tree_enotfound_cb)) < 0)
|
remove_note_in_tree_eexists_cb, remove_note_in_tree_enotfound_cb)) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user