threads / discuss / 26650

libgit2: Resolving HEAD to a SHA

Subject: libgit2: Resolving HEAD to a SHA

## tl;dr

2 messages between Mar 3, 2011 and Mar 3, 2011.

replies: 1people: 2as markdown or json

Joshua Jensen· Mar 3, 2011, 16:08 UTC · lore

I spent a couple hours yesterday trying different methods of resolving HEAD to its appropriate SHA-1. At best, I could get a resolution of HEAD to 'master'.

How do I achieve the functionality of 'git rev-parse' with the libgit2 API?
Thanks.
Josh
Sverre Rabbelier· Mar 3, 2011, 17:31 UTC · re: Joshua Jensen · lore

Re: libgit2: Resolving HEAD to a SHA

Heya,
[+scott, vincent]
On Thu, Mar 3, 2011 at 17:08, Joshua Jensen <jjensen@workspacewhiz.com> wrote:
Show 9 quoted lines
> I spent a couple hours yesterday trying different methods of resolving HEAD
> to its appropriate SHA-1.  At best, I could get a resolution of HEAD to
> 'master'.
>
> How do I achieve the functionality of 'git rev-parse' with the libgit2 API?
>
> Thanks.
>
> Josh
-- 
Cheers,

Sverre Rabbelier

← back to recent threads