Teach builtin-notes to remove empty notes
commita0b4dfa9b35a2ebac578ea5547b041bb78557238
authorJohan Herland <johan@herland.net>
Sat, 13 Feb 2010 21:28:24 +0000 (13 22:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Feb 2010 03:36:14 +0000 (13 19:36 -0800)
tree13c126a0b799f0251e9669dd25afa31b374e01aa
parent851c2b3791f24e319c23331887d4b8150ca4d9ba
Teach builtin-notes to remove empty notes

When the result of editing a note is an empty string, the associated note
entry should be deleted from the notes tree.

This allows deleting notes by invoking either "git notes -m ''" or
"git notes -F /dev/null".

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