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

Re: ignoring files/directories in git

From
Tim Harper <timcharper@gmail.com>
Date
Sep 22, 2008, 18:47 UTC
Message-ID
<74FEF67B-4F2F-46D6-9679-97C2C19829F5@gmail.com>
In-Reply-To
<19596620.post@talk.nabble.com>
On Sep 21, 2008, at 11:42 AM, mwolfe38 wrote:
Show 9 quoted lines
>
> Fixed, by removing the trailing / in the names it will then ignore  
> all files
> in that directory,
> so now i just have
> cache
> log
> instead of
> cache/ and log/

FYI, you might try this instead: /cache /log

It's more specific, and if you had a file like "/lib/adapters/log/ rotater.rb", it wouldn't be ignored, whereas it would without the leading slashes.

Tim
Previous: mwolfe38Next: Dmitry Potapov
Message 5 of 12 in “ignoring files/directories in git”
  1. mwolfe38Sep 21, 2008
  2. Boaz HarroshSep 21, 2008
  3. Alex RiesenSep 21, 2008
  4. mwolfe38Sep 21, 2008
  5. Tim HarperSep 22, 2008
  6. Dmitry PotapovSep 21, 2008
  7. mwolfe38Sep 22, 2008
  8. Boaz HarroshSep 22, 2008
  9. Dmitry PotapovSep 22, 2008
  10. Boaz HarroshSep 22, 2008
  11. Andreas EricssonSep 22, 2008
  12. Dmitry PotapovSep 22, 2008

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.