Re: How to add custom metadata to Git commit object

2016-05-31 Thread Junio C Hamano
Kirill Likhodedov writes: > Just out of curiosity, is it possible to add a custom invisible header > to commit object with some Git command? > git commit or commit-tree don’t have an option for this. There isn't, and that is very much deliberate. We do not

Re: How to add custom metadata to Git commit object

2016-05-31 Thread Kirill Likhodedov
Thanks a lot for your suggestions! > 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

Re: How to add custom metadata to Git commit object

2016-05-30 Thread Junio C Hamano
Jeff King writes: > On Mon, May 30, 2016 at 08:58:08PM +0300, Kirill Likhodedov wrote: > ... >> 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

Re: How to add custom metadata to Git commit object

2016-05-30 Thread Jeff King
On Mon, May 30, 2016 at 08:58:08PM +0300, Kirill Likhodedov wrote: > Is it possible to add custom metadata to Git commit object? Such > metadata should be ignored by Git commands, but could be used by a > 3-party tool which knows the format and knows where to look. Yes. The recommended place to

Re: How to add custom metadata to Git commit object

2016-05-30 Thread Konstantin Khomoutov
On Mon, 30 May 2016 20:58:08 +0300 Kirill Likhodedov wrote: > Is it possible to add custom metadata to Git commit object? > Such metadata should be ignored by Git commands, but could be used by > a 3-party tool which knows the format and knows where to look. >

How to add custom metadata to Git commit object

2016-05-30 Thread Kirill Likhodedov
Is it possible to add custom metadata to Git commit object? Such metadata should be ignored by Git commands, but could be used by a 3-party tool which knows the format and knows where to look. I assume that this should be possible, given that Git objects are actually patches, and patches can