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

Re: [PATCH] Some documentation...

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 20, 2005, 20:15 UTC
Message-ID
<Pine.LNX.4.58.0504201311300.6467@ppc970.osdl.org>
In-Reply-To
<426692D1.20304@dgreaves.com>
On Wed, 20 Apr 2005, David Greaves wrote:
> 
> So maybe it's left as documented behaviour and higher level tools must 
> manage the data they feed to it...
That was the plan.

I agree that "find . -type f | xargs update-cache --add --" in _theory_ is a nice thing to do. But in practice, you want to make sure that find doesn't incldue the ".git" directory and that we always use the canonical names for all files etc etc.

I could do it in the low-level tools (ie do pathname cleanup there), and indeed I did exactly that in the original code sequence. However, it very quickly became obvious that the low-level code really doesn't want to care, and that it's a lot easier to just do it at a higher level when necessary.

For example, if you have to add a sed-script or something that just removes '^./' and "^.git/", then that's trivial to do, and it leaves the core tools with a very clear agenda in life.

		Linus
Previous: David Greaves
Message 4 of 4 in “Some documentation...”
  1. Some documentation...David Greaves, Apr 20, 2005
  2. C. Scott AnanianApr 20, 2005
  3. David GreavesApr 20, 2005
  4. Linus TorvaldsApr 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.