summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 327a89d)
raw | patch | inline | side by side (parent: 327a89d)
author | Johan Herland <johan@herland.net> | |
Tue, 9 Nov 2010 21:49:38 +0000 (22:49 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 10 Nov 2010 18:25:51 +0000 (10:25 -0800) |
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.h | patch | blob | history |
index 65fc3a66b2f575dd078cc390e7f5ea5cbebffc96..c0288b0d32d5fd63ba691e4d7f272ddb4ae319da 100644 (file)
--- a/notes.h
+++ b/notes.h
* 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.
+ *
+ * IMPORTANT: The changes made by copy_note() to the given notes_tree structure
+ * are not persistent until a subsequent call to write_notes_tree() returns
+ * zero.
*/
int copy_note(struct notes_tree *t,
const unsigned char *from_obj, const unsigned char *to_obj,
* notes tree) from within the callback:
* - add_note()
* - remove_note()
+ * - copy_note()
* - free_notes()
*/
typedef int each_note_fn(const unsigned char *object_sha1,