Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-16

Re: How to add custom metadata to Git commit object

From: Junio C Hamano <hidden>
Date: 2016-06-16 02:19:39

Jeff King [off-list ref] writes:
On Mon, May 30, 2016 at 08:58:08PM +0300, Kirill Likhodedov wrote:
...
quoted
There are git-notes, which could be used for the purpose, but they are
visible to the user via standard Git command, and could be used by the
user for other purposes, so they are not very suitable for the task.
Notes would work for this, too, but their main advantage is that they
can be created _after_ a commit has already been made (whereas anything
in the commit object itself will influence its sha1 id).
I would have said the same but with s/but/and/.  If the "rename
hint" or whatever other "custom metadata" Kirill gives to a commit
is found to be wrong, it can be corrected later.

And "the user can use notes for other purposes" is not a good reason
to reject them.  The whole point of allowing custom notes ref is so
that Kirill is not restricted to use the usual notes/commits ref to
store this custom notes in its dedicated notes/kirills-metadata ref.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help