MCPcopy Create free account
hub / github.com/git/git / finish_copy_notes_for_rewrite

Function finish_copy_notes_for_rewrite

notes-utils.c:188–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void finish_copy_notes_for_rewrite(struct repository *r,
189 struct notes_rewrite_cfg *c,
190 const char *msg)
191{
192 int i;
193 for (i = 0; c->trees[i]; i++) {
194 commit_notes(r, c->trees[i], msg);
195 free_notes(c->trees[i]);
196 free(c->trees[i]);
197 }
198 free(c->trees);
199 free(c);
200}

Callers 3

commit_post_rewriteFunction · 0.85
copy_notes_for_rebaseFunction · 0.85
notes_copy_from_stdinFunction · 0.85

Calls 2

commit_notesFunction · 0.85
free_notesFunction · 0.85

Tested by

no test coverage detected