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

Re: Alternate .gitignore

From
MMaaartin <grajcar1@seznam.cz>
Date
Oct 8, 2010, 21:39 UTC
Message-ID
<loom.20101008T225637-152@post.gmane.org>
In-Reply-To
<AANLkTimG188_8qg-DTtJtvX-wkpotgp7+f8Bu4b4ayMn@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab <at> gmail.com> writes:
> Have you looked into storing your binaries in a git-submodule(1) ?

I've look at it just now and it doesn't seem to be the thing I need. According to my very basis understanding submodules seem to be useful for embedding other projects, but I'm working with a single project only. I'm speaking about a single project and need to store it in different repositories at different "ignorance levels".

To make it clear, just imagine that compilation would be many thousand times slower. In such a case you could prefer to store the history of the *.o files as well, but you'd still want to avoid the pollution of the source tree. So you'd maybe use .git for the sources as usually and .git2 (or whatever) for the object files (maybe together with the sources). This comes very close to my situation.

I could switch to using .git2 using $GIT_DIR, but with "*.o" in my .gitignore I see no way how to include the ignored files. Maybe I could use $GIT_DIR/info/ exclude somehow instead of .gitignore, but this could be quite cumbersome.

Previous: Ævar Arnfjörð BjarmasonNext: Kevin Ballard
Message 3 of 4 in “Alternate .gitignore”
  1. MaaartinOct 8, 2010
  2. Ævar Arnfjörð BjarmasonOct 8, 2010
  3. MaaartinOct 8, 2010
  4. Kevin BallardOct 8, 2010

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.