summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorLibravatar Johan Herland <johan@herland.net>2010-02-13 22:28:36 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-02-13 19:36:16 -0800
commit0691cff7dca6b68569183be991d59ebb72b6170e (patch)
treef69cff5cac52e0b624317a6ecf2472fb2496451b /log-tree.c
parentbuiltin-notes: Refactor handling of -F option to allow combining -m and -F (diff)
downloadtgif-0691cff7dca6b68569183be991d59ebb72b6170e.tar.xz
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 <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
0 files changed, 0 insertions, 0 deletions