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

[PATCH 0/3] introduce GIT_CACHE_DIRECTORY to plumbing

From
ZWZach Welch <zw@superlucidity.net>
Date
Apr 20, 2005, 04:32 UTC
Message-ID
<mailbox-1370-1113971526-282751@spoon>

The first patch introduces the GIT_CACHE_DIRECTORY to the C plumbing. Without this patch, the index file and its lock are always placed in './.git'. Scripts wishing to run these commands from a different working directory can use this support to override the cache directory.

The second patch renames the DB_ENVIRONMENT symbols to match. Note, the name changes came from an off-list comment from Linus, after my sendpatches script accidentally bombed him with a half dozen copies of the init-db patch series summary. His comment inspired these last two.

The third patch renames SHA1_FILE_DIRECTORY as GIT_OBJECT_DIRECTORY, to match the "GIT_CACHE_DIRECTORY" name introduced in the first patch. This was done last and seperately so it can be applied after a little bit of notice. We're not at a point of need to be backwards compatible.

This require my latest init-db cleanups be applied first, otherwise you will get a rejection in init-db.c.

There are 3 patches in this series:
        [PATCH 1/3] add GIT_CACHE_DIRECTORY support
        [PATCH 2/3] rename object directory symbols
        [PATCH 3/3] rename SHA1_FILE_DIRECTORY
Message 1 of 1 in “introduce GIT_CACHE_DIRECTORY to plumbing”
  1. 0/3 introduce GIT_CACHE_DIRECTORY to plumbingZach Welch, Apr 20, 2005

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.