builtin-notes: Refactor handling of -F option to allow combining -m and -F
commit348f199b2d9250a82453323c90b7e8d3d9462220
authorJohan Herland <johan@herland.net>
Sat, 13 Feb 2010 21:28:35 +0000 (13 22:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Feb 2010 03:36:16 +0000 (13 19:36 -0800)
tree8488d43362495adda6d99893ac339f11829d5992
parentaaec9bcf6d85a084725e8386bf314a6ef6842468
builtin-notes: Refactor handling of -F option to allow combining -m and -F

By moving the -F option handling into a separate function (parse_file_arg),
we can start allowing several -F options, and mixed usage of -m and -F
options. Each -m/-F given appends to the note message, in the order they are
given on the command-line.

The patch includes tests verifying correct behaviour of the new functionality.

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