{"thread":{"id":"5622","subject":"pseudo initial empty commit and tag for git-log and git-describe?","startedAt":"2006-09-20T13:58:15Z","lastAt":"2006-09-21T05:23:21Z","messageCount":4,"participants":["Nguyễn Thái Ngọc Duy","Matthias Kestenholz","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"27229","messageId":"fcaeb9bf0609200658p3f04df7oe91ddb971787bd70@mail.gmail.com","threadId":"5622","inReplyTo":null,"subject":"pseudo initial empty commit and tag for git-log and git-describe?","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2006-09-20T13:58:15Z","receivedAt":"2006-09-20T13:58:15Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"I'm still uncomfortable with git-log -p unable to show the first\ncommit (git-whatchanged too). Also git-describe refuses to work\nwithout any tag. I'm thinking about adding a pseudo empty commit\ntogether with a tag so that these commands work. The commit and tag\nwill be created at runtime. They do not actually exist in the object\ndatabase. I haven't thought about how to implement it yet.\nAny other ideas?\n-- \nDuy\n"},{"id":"27230","messageId":"1158761400.6516.25.camel@localhost.localdomain","threadId":"5622","inReplyTo":"fcaeb9bf0609200658p3f04df7oe91ddb971787bd70@mail.gmail.com","subject":"Re: pseudo initial empty commit and tag for git-log and git-describe?","fromName":"Matthias Kestenholz","fromEmail":"lists@spinlock.ch","sentAt":"2006-09-20T14:10:00Z","receivedAt":"2006-09-20T14:10:00Z","isPatch":false,"sender":{"key":"lists@spinlock.ch","avatar":null},"body":"hello\n\nOn Wed, 2006-09-20 at 20:58 +0700, Nguyễn Thái Ngọc Duy wrote:\n> I'm still uncomfortable with git-log -p unable to show the first\n> commit (git-whatchanged too). Also git-describe refuses to work\n> without any tag. I'm thinking about adding a pseudo empty commit\n> together with a tag so that these commands work. The commit and tag\n> will be created at runtime. They do not actually exist in the object\n> database. I haven't thought about how to implement it yet.\n> Any other ideas?\n\nyou can use git log -p --root  to also display the root commit.\n\n\tMatthias\n"},{"id":"27234","messageId":"Pine.LNX.4.64.0609200807120.4388@g5.osdl.org","threadId":"5622","inReplyTo":"fcaeb9bf0609200658p3f04df7oe91ddb971787bd70@mail.gmail.com","subject":"Re: pseudo initial empty commit and tag for git-log and git-describe?","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2006-09-20T15:12:09Z","receivedAt":"2006-09-20T15:12:09Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Wed, 20 Sep 2006, Nguyá»n ThÃ¡i Ngá»c Duy wrote:\n>\n> I'm still uncomfortable with git-log -p unable to show the first\n> commit (git-whatchanged too).\n\nBoth of those work fine with \"--root\". That option tells git: \"I'm \ninterested in the root patch too\".\n\nIt might make sense to have \"--root\" be the default, but the problem is \nthat for projects like the Linux kernel where the first commit is a big \nimport, showing it as a patch simply doesn't make sense.\n\nSo it would have to be a per-repository decision, depending on whether the \nrepo considers the first commit to be an import or not. Maybe a git-config \noption?\n\n> Also git-describe refuses to work without any tag.\n\nNow, that's arguably a real bug. You should be able to describe any \ncommit, and if there's no tag that is reachable from it, the \"description\" \nshould probably just be the SHA1 of the commit.\n\n(Side issue: we should probably also accept the output of \"git describe\" \nas a revision name, since it's a bit silly that you can ask git to \n\"describe\" a revision, but then git can't actually use the description \nitself ;)\n\n\t\t\tLinus"},{"id":"27335","messageId":"fcaeb9bf0609202223u4f0bf2abv75d6d308637b0aef@mail.gmail.com","threadId":"5622","inReplyTo":"1158761400.6516.25.camel@localhost.localdomain","subject":"Re: pseudo initial empty commit and tag for git-log and git-describe?","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2006-09-21T05:23:21Z","receivedAt":"2006-09-21T05:23:21Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On 9/20/06, Matthias Kestenholz <lists@spinlock.ch> wrote:\n> hello\n> you can use git log -p --root  to also display the root commit.\nThanks. I didn't know about --root.\n-- \nDuy\n"}]}