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

libgit2: Resolving HEAD to a SHA

From
Joshua Jensen <jjensen@workspacewhiz.com>
Date
Mar 3, 2011, 16:08 UTC
Message-ID
<4D6FBD00.6010208@workspacewhiz.com>

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
Next: Sverre Rabbelier
Message 1 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.