Code

builtin/notes.c: Split notes ref DWIMmery into a separate function
authorJohan Herland <johan@herland.net>
Tue, 9 Nov 2010 21:49:45 +0000 (22:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Nov 2010 21:21:30 +0000 (13:21 -0800)
commit8ef313e1ec3b9b8ca47dce1fec632597aa34bedc
tree92be1e3c711e174cc17cf2c21942c2958f5658b1
parentd4990c4b2f5f7066853fea4df775b3f506c79431
builtin/notes.c: Split notes ref DWIMmery into a separate function

expand_notes_ref() is a new function that performs the DWIM transformation
of "foo" -> "refs/notes/foo" where notes refs are expected.

This is done in preparation for future patches which will also need this
DWIM functionality.

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