summaryrefslogtreecommitdiff
path: root/sideband.c
diff options
context:
space:
mode:
authorLibravatar Johan Herland <johan@herland.net>2010-02-13 22:28:32 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-02-13 19:36:15 -0800
commit7aa4754e552eff22d70d496dea73a9c7639d66d3 (patch)
treedaad9978c75613bbec158d4dd1ea86c177e291ef /sideband.c
parentbuiltin-notes: Add --message/--file aliases for -m/-F options (diff)
downloadtgif-7aa4754e552eff22d70d496dea73a9c7639d66d3.tar.xz
builtin-notes: Add "add" subcommand for adding notes to objects
"git notes add" is identical to "git notes edit" except that instead of editing existing notes for a given object, you can only add notes to an object that currently has none. If "git notes add" finds existing notes for the given object, the addition is aborted. However, if the new -f/--force option is used, "git notes add" will _overwrite_ the existing notes with the new notes contents. If there is no existing notes for the given object. "git notes add" is identical to "git notes edit" (i.e. it adds a new note). The patch includes tests verifying correct behaviour of the new subcommand. Suggested-by: Joey Hess <joey@kitenet.net> 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 'sideband.c')
0 files changed, 0 insertions, 0 deletions