index 2cc07409dbcfe36c71d25ae26dc20eff9bf89b6f..ee65bd1a2430d4af53f03fd2cc9faa916863408c 100644 (file)
--- a/notes.h
+++ b/notes.h
char *ref;
combine_notes_fn *combine_notes;
int initialized;
+ int dirty;
} default_notes_tree;
/*
const unsigned char *get_note(struct notes_tree *t,
const unsigned char *object_sha1);
+/*
+ * Copy a note from one object to another in the given notes_tree.
+ *
+ * Fails if the to_obj already has a note unless 'force' is true.
+ */
+int copy_note(struct notes_tree *t,
+ const unsigned char *from_obj, const unsigned char *to_obj,
+ int force, combine_notes_fn combine_fn);
+
/*
* Flags controlling behaviour of for_each_note()
*