builtin/notes: refactor note file path into struct note_data
commit4282af0fc91e7a2667f8cba7282a5b70347f6e6f
authorJohan Herland <johan@herland.net>
Sun, 9 Nov 2014 12:30:50 +0000 (9 13:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Nov 2014 20:08:21 +0000 (10 12:08 -0800)
treef89d44d6de2dba2b9203324b48fadd274bb0fc00
parentbebf5c04767b3c67dadfa8b65e6f0ceb258f6b83
builtin/notes: refactor note file path into struct note_data

Move the 'path' variable from create_note() and into the
note_data struct. Unify cleanup of note_data objects with
a free_note_data() function.

This might not make too much sense on its own, but it makes the
future refactoring of create_note() considerably cleaner.

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