author | Johan Herland <johan@herland.net> | |
Sat, 13 Feb 2010 21:28:24 +0000 (22:28 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 14 Feb 2010 03:36:14 +0000 (19:36 -0800) | ||
commit | a0b4dfa9b35a2ebac578ea5547b041bb78557238 | |
tree | 13c126a0b799f0251e9669dd25afa31b374e01aa | tree | snapshot |
parent | 851c2b3791f24e319c23331887d4b8150ca4d9ba | commit | diff |
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>
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 | diff | blob | history | |
t/t3301-notes.sh | diff | blob | history |