summaryrefslogtreecommitdiff
path: root/test-subprocess.c
diff options
context:
space:
mode:
authorLibravatar Johan Herland <johan@herland.net>2014-11-12 01:40:14 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-11-12 11:00:11 -0800
commitd73a5b933db1e722faa54d6709e89e2450d7c1e3 (patch)
tree758422932df86d91545398515278e7192749937d /test-subprocess.c
parentbuiltin/notes: split create_note() to clarify add vs. remove logic (diff)
downloadtgif-d73a5b933db1e722faa54d6709e89e2450d7c1e3.tar.xz
builtin/notes: add --allow-empty, to allow storing empty notes
Although the "git notes" man page advertises that we support binary-safe notes addition (using the -C option), we currently do not support adding the empty note (i.e. using the empty blob to annotate an object). Instead, an empty note is always treated as an intent to remove the note altogether. Introduce the --allow-empty option to the add/append/edit subcommands, to explicitly allow an empty note to be stored into the notes tree. Also update the documentation, and add test cases for the new option. Reported-by: James H. Fisher <jhf@trifork.com> Improved-by: Kyle J. McKay <mackyle@gmail.com> Improved-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-subprocess.c')
0 files changed, 0 insertions, 0 deletions