]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/notes.c
builtin/notes: improve naming
authorJohan Herland <johan@herland.net>
Sun, 9 Nov 2014 12:30:49 +0000 (13:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Nov 2014 20:08:21 +0000 (12:08 -0800)
commitbebf5c04767b3c67dadfa8b65e6f0ceb258f6b83
tree239e6e6f63245c82c3caaf5b2f58f72ef7a98765
parentd0923b6d4c01e3c5b86d56b1741292eda7c181fe
builtin/notes: improve naming

In preparation for some needed refactoring, rename struct msg_arg to
struct note_data, and rename its instances from "msg" to "d" (also
removing some unnecessary parentheses). The 'msg_arg' name was
inherited from tag.c, but is not really a good name for the contents
of a note.

Also rename write_note_data() to copy_obj_to_fd(), which more aptly
describes what it actually does: Copying the contents of a git object
(given by its SHA1) into a given file descriptor.

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