builtin-notes: Add "append" subcommand for appending to note objects
commit2347fae50b2f75c6c0b362bd9ef24249419ed2b1
authorJohan Herland <johan@herland.net>
Sat, 13 Feb 2010 21:28:33 +0000 (13 22:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Feb 2010 03:36:16 +0000 (13 19:36 -0800)
tree13975d09a3a5bbbe4b95d21ff8e0a54afe83bcdc
parent7aa4754e552eff22d70d496dea73a9c7639d66d3
builtin-notes: Add "append" subcommand for appending to note objects

"git notes append" is equivalent to "git notes edit" except that instead
of editing existing notes contents, you can only append to it. This is
useful for quickly adding annotations like e.g.:
git notes append -m "Acked-by: A U Thor <author@example.com>"

"git notes append" takes the same -m/-F options as "git notes add".

If there is no existing note to append to, "git notes append" is identical
to "git notes add" (i.e. it adds a new note).

The patch includes tests verifying correct behaviour of the new subcommand.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-notes.txt
builtin-notes.c
t/t3301-notes.sh