From: Johan Herland Date: Sat, 13 Feb 2010 21:28:36 +0000 (+0100) Subject: builtin-notes: Add -c/-C options for reusing notes X-Git-Tag: v1.7.1-rc0~43^2~16 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0691cff7dca6b68569183be991d59ebb72b6170e?hp=0691cff7dca6b68569183be991d59ebb72b6170e builtin-notes: Add -c/-C options for reusing notes Inspired by the -c/-C options to "git commit", we teach these options to "git notes add/append" to allow reuse of note objects. With this patch in place, it is now easy to copy or move notes between objects. For example, to copy object A's notes to object B: git notes add [-f] -C $(git notes list A) B To move instead of copying, you simply remove the notes from the source object afterwards, e.g.: git notes remove A The patch includes tests verifying correct behaviour of the new functionality. Signed-off-by: Johan Herland Signed-off-by: Junio C Hamano ---