{"thread":{"id":"26650","subject":"libgit2: Resolving HEAD to a SHA","startedAt":"2011-03-03T16:08:32Z","lastAt":"2011-03-03T17:31:01Z","messageCount":2,"participants":["Joshua Jensen","Sverre Rabbelier"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"162728","messageId":"4D6FBD00.6010208@workspacewhiz.com","threadId":"26650","inReplyTo":null,"subject":"libgit2: Resolving HEAD to a SHA","fromName":"Joshua Jensen","fromEmail":"jjensen@workspacewhiz.com","sentAt":"2011-03-03T16:08:32Z","receivedAt":"2011-03-03T16:08:32Z","isPatch":false,"sender":{"key":"jjensen@workspacewhiz.com","avatar":"https://avatars.githubusercontent.com/u/111687?v=4"},"body":"I spent a couple hours yesterday trying different methods of resolving \nHEAD to its appropriate SHA-1.  At best, I could get a resolution of \nHEAD to 'master'.\n\nHow do I achieve the functionality of 'git rev-parse' with the libgit2 API?\n\nThanks.\n\nJosh\n"},{"id":"162729","messageId":"AANLkTi=Cb2HTqopLs9J1cgakJGNz2O_o7mhW7nKzbqY2@mail.gmail.com","threadId":"26650","inReplyTo":"4D6FBD00.6010208@workspacewhiz.com","subject":"Re: libgit2: Resolving HEAD to a SHA","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2011-03-03T17:31:01Z","receivedAt":"2011-03-03T17:31:01Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\n[+scott, vincent]\n\nOn Thu, Mar 3, 2011 at 17:08, Joshua Jensen <jjensen@workspacewhiz.com> wrote:\n> I spent a couple hours yesterday trying different methods of resolving HEAD\n> to its appropriate SHA-1.  At best, I could get a resolution of HEAD to\n> 'master'.\n>\n> How do I achieve the functionality of 'git rev-parse' with the libgit2 API?\n>\n> Thanks.\n>\n> Josh\n\n-- \nCheers,\n\nSverre Rabbelier\n"}]}