Code

Builtin-ify git-notes
authorJohan Herland <johan@herland.net>
Sat, 13 Feb 2010 21:28:20 +0000 (22:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Feb 2010 03:36:13 +0000 (19:36 -0800)
commitcd067d3bf4ea3f89969cd143be3e281e1c5ac58a
tree0125d61613bd0b9482cbe2e7bf6e1961c9507d23
parent73f464b5f3fe4dd5109b9fb9e58c1fe55393902d
Builtin-ify git-notes

The builtin-ification includes some minor behavioural changes to the
command-line interface: It is no longer allowed to mix the -m and -F
arguments, and it is not allowed to use multiple -F options.

As part of the builtin-ification, we add the commit_notes() function
to the builtin API. This function (together with the notes.h API) can
be easily used from other builtins to manipulate the notes tree.

Also includes needed changes to t3301.

This patch has been improved by the following contributions:
- Stephen Boyd: Use die() instead of fprintf(stderr, ...) followed by exit(1)

Cc: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-notes.txt
Makefile
builtin-notes.c [new file with mode: 0644]
builtin.h
contrib/examples/git-notes.sh [new file with mode: 0755]
git-notes.sh [deleted file]
git.c
t/t3301-notes.sh