diff options
author | Johan Herland <johan@herland.net> | 2010-02-13 22:28:38 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-13 19:36:17 -0800 |
commit | e73bbd96c6e9ce11a101dac03402d0f718a1bd23 (patch) | |
tree | b4922667d15dbc5bca2d4a3b0898cb30b7bdedd5 /git-rebase--interactive.sh | |
parent | 5848769f9de68cfb0735710c6c4d2f08aa53f317 (diff) | |
download | git-e73bbd96c6e9ce11a101dac03402d0f718a1bd23.tar.gz |
builtin-notes: Add "copy" subcommand for copying notes between objects
This is useful for keeping notes to objects that are being rewritten by e.g.
'git commit --amend', 'git rebase', or 'git cherry-pick'.
"git notes copy <from> <to>" is in practice equivalent to
"git notes add -C $(git notes list <from>) <to>", although it is somewhat
more convenient for regular users.
"git notes copy" takes the same -f option as "git add", to overwrite existing
notes at the target (instead of aborting with an error message).
If the <from>-object has no notes, "git notes copy" will abort with an error
message.
The patch includes tests verifying correct behaviour of the new subcommand.
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase--interactive.sh')
0 files changed, 0 insertions, 0 deletions