diff options
author | Johan Herland <johan@herland.net> | 2010-02-13 22:28:36 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-13 19:36:16 -0800 |
commit | 0691cff7dca6b68569183be991d59ebb72b6170e (patch) | |
tree | f69cff5cac52e0b624317a6ecf2472fb2496451b /archive.c | |
parent | 348f199b2d9250a82453323c90b7e8d3d9462220 (diff) | |
download | git-0691cff7dca6b68569183be991d59ebb72b6170e.tar.gz |
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 'archive.c')
0 files changed, 0 insertions, 0 deletions