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

gitignore and directories

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Nov 30, 2005, 18:21 UTC
Message-ID
<Pine.LNX.4.64.0511301318100.25300@iabervon.org>

There's a bug in .gitignore handling with respect to directories, but I'm not sure which behavior is intended. If you have some pattern in .gitignore in your working tree root directory, and you run git-status in that directory, it will ignore files that match in subdirectories. However, if you're in a subdirectory when you run git-status, it won't ignore things that match the pattern. One of these must be a bug, but I'm not sure which one matches the intent.

	-Daniel
*This .sig left intentionally blank*
Message 1 of 1 in “gitignore and directories”
  1. Daniel BarkalowNov 30, 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.