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

Re: libgit: git_setup_directory() is not reentrant

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 4, 2008, 20:40 UTC
Message-ID
<7vd4shjpdi.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<477E67C5.5020301@pipapo.org>
Christian Thaeter <ct@pipapo.org> writes:
> While working on a git-browser, I noticed that git_setup_directory() is
> not reentrant.

Yup, that comes from a longstanding design of git that "a command runs once and exits". Do not call that twice, or help the libification effort.

Previous: Christian Thaeter
Message 2 of 2 in “libgit: git_setup_directory() is not reentrant”
  1. Christian ThaeterJan 4, 2008
  2. Junio C HamanoJan 4, 2008

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.