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

Re: [PATCH Cogito] cg-init breaks if . contains sub-dir

From
David Greaves <david@dgreaves.com>
Date
May 10, 2005, 09:47 UTC
Message-ID
<4280833E.2020300@dgreaves.com>
In-Reply-To
<20050510085626.GC8176@lug-owl.de>
Jan-Benedict Glaw wrote:
Show 24 quoted lines
>On Tue, 2005-05-10 10:36:09 +0200, Matthias Urlichs <smurf@smurf.noris.de> wrote:
>  
>
>>Jan-Benedict Glaw:
>>    
>>
>>>>	find * \( -type f -o tyle l \) -print0 | ...
>>>>        
>>>>
>>>Btw, this won't find dot files, so using "." as the path list (instead
>>>of "*") might be wise...
>>>
>>>      
>>>
>>git doesn't want to handle dot files anyway.
>>    
>>
>
>...which I actually consider to be a bug. Why should git care about the
>filename, as long as it doesn't clash with ".git"?  After all, it's just
>a plumbing mechanism designed to locate file contents by SHA-1 hashes.
>It shouldn't deal with file names at all, really:-)
>  
>

I tend to agree that a generic 'content tracking system' shouldn't impose this kind of rule. Requiring well formed filenames (eg no //, no trailing /s) is fine - but dot-file-discrimination?

When I first saw it, I expected this kind of rule to (eventually) be lifted from the plumbing to the porcelain. The minor problem is that Linus seems to like getting his hands dirty and keeps using the plumbing ;) (eek - these analogies...)

David
Previous: Jan-Benedict GlawNext: David Greaves
Message 10 of 22 in “cg-init breaks if . contains sub-dir”
  1. cg-init breaks if . contains sub-dirBrandon Philips, May 9, 2005
  2. Morten WelinderMay 10, 2005
  3. Matthias UrlichsMay 10, 2005
  4. Brian GerstMay 10, 2005
  5. Jan-Benedict GlawMay 10, 2005
  6. Jan-Benedict GlawMay 10, 2005
  7. Matthias UrlichsMay 10, 2005
  8. Martin WaitzMay 10, 2005
  9. Jan-Benedict GlawMay 10, 2005
  10. David GreavesMay 10, 2005
  11. David GreavesMay 10, 2005
  12. Junio C HamanoMay 10, 2005
  13. Jan-Benedict GlawMay 10, 2005
  14. Matthias UrlichsMay 10, 2005
  15. Jan-Benedict GlawMay 10, 2005
  16. Matthias UrlichsMay 10, 2005
  17. David MansfieldMay 10, 2005
  18. match pathnames in exclude handlingMatthias Urlichs, May 11, 2005
  19. H. Peter AnvinMay 11, 2005
  20. Matthias UrlichsMay 12, 2005
  21. H. Peter AnvinMay 10, 2005
  22. Petr BaudisMay 12, 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.