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

Feature Request: gitignore recursion

From
AAJ <alljeep@gmail.com>
Date
Oct 6, 2013, 22:23 UTC
Message-ID
<loom.20131007T000517-673@post.gmane.org>
I'm hoping to get the following feature implemented into git.

Add the ability to recursively include using: !/my_dir/**/*

Currently, in order to include a directory with multiple sub-directories within a excluded directory, you must do the following: !/my_dir/ !/my_dir/* !/my_dir/*/* !/my_dir/*/*/* !/my_dir/*/*/*/* !/my_dir/*/*/*/*/*

Here is a use case: When developing a WordPress site you typically only place the wp-content/themes directory under version control. Once you start adding custom plugins, README files, and a task manager like Grunt JS, you then have to starting getting creative with your .gitignore if your .git directory is in the web root directory.

Here is an example: https://gist.github.com/AJ-Acevedo/6859779

Thanks for taking the time to consider this feature AJ

Next: Duy Nguyen
Message 1 of 7 in “Feature Request: gitignore recursion”
  1. AJOct 6, 2013
  2. Duy NguyenOct 7, 2013
  3. Jeff KingOct 7, 2013
  4. Duy NguyenOct 7, 2013
  5. Karsten BleesOct 10, 2013
  6. Jeff KingOct 10, 2013
  7. Karsten BleesOct 10, 2013

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.