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

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

From
DMDavid Mansfield <david@cobite.com>
Date
May 10, 2005, 21:31 UTC
Message-ID
<4281281F.6000101@cobite.com>
In-Reply-To
<20050510095825.GI11221@kiste.smurf.noris.de>
Matthias Urlichs wrote:
Show 17 quoted lines
> Hi,
> 
> Jan-Benedict Glaw:
> 
>>>Please don't change that without talking to Linus.
>>
>>I won't.  You haven't seen a patch from me "fixing" this, too.  *I*
>>consider this as a defect, but that doesn't mean that I'll force others
>>to take this view, too.  But maybe I'll talk Linus into this when he's
>>back from his trip.
> 
> 
> That would be a good idea; I do support dropping (or at least relaxing)
> that rule. For excluding unwanted files, I'd suggest using a .git/ignore
> file with nice shiny patterns (*.a *.o *.swp ...) inside -- git already
> supports that anyway.
> 

Speaking of which, for a large project, (such as the kernel) it is a pain in the butt if exclude lists only consider the 'basename' of the file, and cannot include any path matching information.

For a long time there were generated files in the kernel which had the same names as non-generated files somewhere else in the kernel tree (under a different path). Making an automated 'take latest patch from Linus, apply, commit' was really a pain because of this.

Is there/will there be support for path matching in the ignore files?
If the answer is no, but people like the idea, I could look into it.
David
Previous: Matthias UrlichsNext: Matthias Urlichs
Message 17 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.