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

Re: updating only changed files source directory?

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Oct 25, 2006, 19:35 UTC
Message-ID
<Pine.LNX.4.64.0610251525060.9789@iabervon.org>
In-Reply-To
<453F517A.7060000@xs4all.nl>
On Wed, 25 Oct 2006, Han-Wen Nienhuys wrote:
> How can I set the object database?  I found GIT_OBJECT_DIRECTORY, but can I
> write a config file entry for that?

If you clone with --shared, it'll do the right thing automatically, which is to have the clone's .git/objects/info/alternates be the objects directory of the bare repository.

(Note that any new objects you create in the clone go into the clone's own objects database. This shouldn't matter for you, unless your build system is tagging things or something, but if you end up doing development in a similarly structured system, it's worth knowing that this doesn't affect the bare repository at all.)

> yes, this works. Thanks!
No problem. :)
	-Daniel
Previous: Han-Wen Nienhuys
Message 8 of 8 in “updating only changed files source directory?”
  1. Han-Wen NienhuysOct 24, 2006
  2. Shawn PearceOct 24, 2006
  3. Jakub NarebskiOct 24, 2006
  4. Han-Wen NienhuysOct 24, 2006
  5. Jakub NarebskiOct 24, 2006
  6. Daniel BarkalowOct 24, 2006
  7. Han-Wen NienhuysOct 25, 2006
  8. Daniel BarkalowOct 25, 2006

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.