Skip to contentSkip to conversation

libgit2: Resolving HEAD to a SHA

DISCUSSION Joshua Jensen 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Heya,

[+scott, vincent]

Quoted 9 lines · Joshua Jensen

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

Signature · 3 lines
Cheers,

Sverre Rabbelier