git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: libgit2: Resolving HEAD to a SHA

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Mar 3, 2011, 17:31 UTC
Message-ID
<AANLkTi=Cb2HTqopLs9J1cgakJGNz2O_o7mhW7nKzbqY2@mail.gmail.com>
In-Reply-To
<4D6FBD00.6010208@workspacewhiz.com>
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
Previous: Joshua Jensen
Message 2 of 2 in “libgit2: Resolving HEAD to a SHA”
  1. Joshua JensenMar 3, 2011
  2. Sverre RabbelierMar 3, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.