MCPcopy Index your code
hub / github.com/git/git / copy_note_for_rewrite

Function copy_note_for_rewrite

notes-utils.c:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178int copy_note_for_rewrite(struct notes_rewrite_cfg *c,
179 const struct object_id *from_obj, const struct object_id *to_obj)
180{
181 int ret = 0;
182 int i;
183 for (i = 0; c->trees[i]; i++)
184 ret = copy_note(c->trees[i], from_obj, to_obj, 1, c->combine) || ret;
185 return ret;
186}
187
188void finish_copy_notes_for_rewrite(struct repository *r,
189 struct notes_rewrite_cfg *c,

Callers 3

commit_post_rewriteFunction · 0.85
copy_notes_for_rebaseFunction · 0.85
notes_copy_from_stdinFunction · 0.85

Calls 1

copy_noteFunction · 0.85

Tested by

no test coverage detected