{"thread":{"id":"36514","subject":"RE: Recording the current branch on each commit?","startedAt":"2014-04-28T06:36:35Z","lastAt":"2014-04-30T04:04:37Z","messageCount":3,"participants":["Max Kirillov","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"239834","messageId":"20140427233635.96eec638b311907e2368f42b42021fd8.fa0e4193ea.wbe@email02.secureserver.net","threadId":"36514","inReplyTo":null,"subject":"RE: Recording the current branch on each commit?","fromName":"Max Kirillov","fromEmail":"max@max630.net","sentAt":"2014-04-28T06:36:35Z","receivedAt":"2014-04-28T06:36:35Z","isPatch":false,"sender":{"key":"max@max630.net","avatar":"https://avatars.githubusercontent.com/u/381560?v=4"},"body":"Hi.\n\n> Obviously, the feature would necessarily have to be optional, simply\n> because Git would have to keep understanding the old commit object\n> format for a LONG time (probably indefinitely), and there's nothing\n> you can do to prevent others from creating old-style commit objects.\n\nDoesn't git ignores unknown headers? I has been investigating this issue\nand it looked like it does.\n\nCould the API to add commit headers (which exists in sources) be added\nto cli, so users can create the branches, phases or whatever they feel\nuseful?\n\n-- \nMax\n"},{"id":"239982","messageId":"xmqq1twhs4lt.fsf@gitster.dls.corp.google.com","threadId":"36514","inReplyTo":"20140427233635.96eec638b311907e2368f42b42021fd8.fa0e4193ea.wbe@email02.secureserver.net","subject":"Re: Recording the current branch on each commit?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-04-28T18:15:10Z","receivedAt":"2014-04-28T18:15:10Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Max Kirillov\" <max@max630.net> writes:\n\n>> Obviously, the feature would necessarily have to be optional, simply\n>> because Git would have to keep understanding the old commit object\n>> format for a LONG time (probably indefinitely), and there's nothing\n>> you can do to prevent others from creating old-style commit objects.\n>\n> Doesn't git ignores unknown headers? I has been investigating this issue\n> and it looked like it does.\n>\n> Could the API to add commit headers (which exists in sources) be added\n> to cli, so users can create the branches, phases or whatever they feel\n> useful?\n\nWe had lengthy discussions in early 2010 [*1*].  The whole thread,\nat least the whole sub-thread that contains the focused message, is\na required reading to understand where we stand with respect to\n\"extra headers in commit objects\".\n\n\"Any additional information about the commit can be added\" you\nsuggest is exactly the kind of thing we want to avoid, which made\nLinus say in an even older discussion [*2*]:\n\n    No \"this random field could be used this random way\" crud,\n    please.\n\n\n[References]\n\n*1* http://thread.gmane.org/gmane.comp.version-control.git/138848/focus=138892\n*2* http://thread.gmane.org/gmane.comp.version-control.git/19126/focus=19149\n"},{"id":"240265","messageId":"20140430040437.GA5817@wheezy.local","threadId":"36514","inReplyTo":"xmqq1twhs4lt.fsf@gitster.dls.corp.google.com","subject":"Re: Recording the current branch on each commit?","fromName":"Max Kirillov","fromEmail":"max@max630.net","sentAt":"2014-04-30T04:04:37Z","receivedAt":"2014-04-30T04:04:37Z","isPatch":false,"sender":{"key":"max@max630.net","avatar":"https://avatars.githubusercontent.com/u/381560?v=4"},"body":"On Mon, Apr 28, 2014 at 11:15:10AM -0700, Junio C Hamano wrote:\n> \"Any additional information about the commit can be added\" you\n> suggest is exactly the kind of thing we want to avoid, which made\n> Linus say in an even older discussion [*2*]:\n> \n>     No \"this random field could be used this random way\" crud,\n>     please.\n\nI see, thanks for explanation.\n\n-- \nMax\n"}]}