{"thread":{"id":"21137","subject":"Re: previous references","startedAt":"2009-10-04T08:31:10Z","lastAt":"2009-10-05T21:20:24Z","messageCount":4,"participants":["Daniele Segato","Sverre Rabbelier","Johan Herland","Octavian Râşniţă"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"299243","messageId":"8E72DAAF9F8E4024BB819F3F83CCFC79@teddy","threadId":"21137","inReplyTo":null,"subject":"previous references","fromName":"Octavian Râşniţă","fromEmail":"orasnita@gmail.com","sentAt":"2009-10-04T08:31:10Z","receivedAt":"2009-10-04T08:31:10Z","isPatch":false,"sender":{"key":"orasnita@gmail.com","avatar":null},"body":"Hi,\n\nAre the following commands specifying the same reference?\n\nprompt> git log -1 HEAD^^^ ... log entry ... \nprompt> git log -1 HEAD^~2 ... log entry ... \nprompt> git log -1 HEAD~1^^ ... log entry ... \nprompt> git log -1 HEAD~3 ... log entry ... \n\nThank you.\n\nOctavian\n\n"},{"id":"299123","messageId":"200910041127.29588.johan@herland.net","threadId":"21137","inReplyTo":"8E72DAAF9F8E4024BB819F3F83CCFC79@teddy","subject":"Re: previous references","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2009-10-04T09:27:29Z","receivedAt":"2009-10-04T09:27:29Z","isPatch":false,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"On Sunday 04 October 2009, Octavian Râşniţă wrote:\n> Are the following commands specifying the same reference?\n> \n> prompt> git log -1 HEAD^^^ ... log entry ...\n> prompt> git log -1 HEAD^~2 ... log entry ...\n> prompt> git log -1 HEAD~1^^ ... log entry ...\n> prompt> git log -1 HEAD~3 ... log entry ...\n\nYes\n\n...Johan\n\n-- \nJohan Herland, <johan@herland.net>\nwww.herland.net\n"},{"id":"124278","messageId":"1254777067.26111.105.camel@localhost","threadId":"21137","inReplyTo":"200910041127.29588.johan@herland.net","subject":"Re: previous references","fromName":"Daniele Segato","fromEmail":"daniele.bilug@gmail.com","sentAt":"2009-10-05T21:11:07Z","receivedAt":"2009-10-05T21:11:07Z","isPatch":false,"sender":{"key":"daniele.bilug@gmail.com","avatar":null},"body":"Il giorno dom, 04/10/2009 alle 11.27 +0200, Johan Herland ha scritto:\n> On Sunday 04 October 2009, Octavian Râşniţă wrote:\n> > Are the following commands specifying the same reference?\n> > \n> > prompt> git log -1 HEAD^^^ ... log entry ...\n> > prompt> git log -1 HEAD^~2 ... log entry ...\n> > prompt> git log -1 HEAD~1^^ ... log entry ...\n> > prompt> git log -1 HEAD~3 ... log entry ...\n> \n> Yes\n\nthe ~ is used to select the first parent of a commit and their\ngrand-parents\n\nHEAD~ means the parent of the current head\nHEAD~2 means the grand-parent\nHEAD~3 the grand-grand-parent..\n\nthe ^ is used to select a direct parent of a commit\nHEAD^ is the same as HEAD~\nHEAD^^ is the same as HEAD~2 (parent of the parent)\nHEAD^2 is NOT the same of HEAD~2, it means the \"second parent\" of HEAD:\nthis make sense only if HEAD has at least two parents (because it is a\nmerge commit) if it hasn't you'll get:\n\nfatal: ambiguous argument 'HEAD^2': unknown revision or path not in the\nworking tree.\nUse '--' to separate paths from revisions\n\n\nyou can read the same here: http://progit.org/book/ch6-1.html\n\nregards,\nDaniele\n"},{"id":"124282","messageId":"fabb9a1e0910051420q58bded6aqa9510b2cc77a1419@mail.gmail.com","threadId":"21137","inReplyTo":"1254777067.26111.105.camel@localhost","subject":"Re: previous references","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-10-05T21:20:24Z","receivedAt":"2009-10-05T21:20:24Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Mon, Oct 5, 2009 at 23:11, Daniele Segato <daniele.bilug@gmail.com> wrote:\n> fatal: ambiguous argument 'HEAD^2': unknown revision or path not in the\n> working tree.\n> Use '--' to separate paths from revisions\n\nReally? That's awful, shouldn't we at least say something about HEAD\nnot having that many parents?\n\n-- \nCheers,\n\nSverre Rabbelier\n"}]}