Re: Feature Request: gitignore recursion

2013-10-10 Thread Jeff King
On Thu, Oct 10, 2013 at 09:59:38AM +0200, Karsten Blees wrote: > > On Mon, Oct 07, 2013 at 07:24:11AM -0400, Jeff King wrote: > >> However, one thing I expected to work but didn't is: > >> > >> echo '*' >.gitignore > >> echo '!*' >my_dir/.gitignore > >> > >> That _does_ work for attributes,

Re: Feature Request: gitignore recursion

2013-10-10 Thread Karsten Blees
> On Mon, Oct 07, 2013 at 07:24:11AM -0400, Jeff King wrote: >> However, one thing I expected to work but didn't is: >> >> echo '*' >.gitignore >> echo '!*' >my_dir/.gitignore >> >> That _does_ work for attributes, like: >> >> echo '* foo=one' >.gitattributes >> echo '* foo=two' >my_dir/

Re: Feature Request: gitignore recursion

2013-10-10 Thread Karsten Blees
> On Mon, Oct 7, 2013 at 5:23 AM, AJ wrote: >> I'm hoping to get the following feature implemented into git. >> >> Add the ability to recursively include using: >> !/my_dir/**/* > > > You can do that since v1.8.2. Actually the pattern should be > > !/my_dir/** > Another solution to include ju

Re: Feature Request: gitignore recursion

2013-10-07 Thread Duy Nguyen
On Mon, Oct 07, 2013 at 07:24:11AM -0400, Jeff King wrote: > However, one thing I expected to work but didn't is: > > echo '*' >.gitignore > echo '!*' >my_dir/.gitignore > > That _does_ work for attributes, like: > > echo '* foo=one' >.gitattributes > echo '* foo=two' >my_dir/.gitattribu

Re: Feature Request: gitignore recursion

2013-10-07 Thread Jeff King
On Mon, Oct 07, 2013 at 05:26:17PM +0700, Nguyen Thai Ngoc Duy wrote: > On Mon, Oct 7, 2013 at 5:23 AM, AJ wrote: > > I'm hoping to get the following feature implemented into git. > > > > Add the ability to recursively include using: > > !/my_dir/**/* > > You can do that since v1.8.2. Actually t

Re: Feature Request: gitignore recursion

2013-10-07 Thread Duy Nguyen
On Mon, Oct 7, 2013 at 5:23 AM, AJ wrote: > I'm hoping to get the following feature implemented into git. > > Add the ability to recursively include using: > !/my_dir/**/* You can do that since v1.8.2. Actually the pattern should be !/my_dir/** Checkout gitignore man page for more information.

Feature Request: gitignore recursion

2013-10-06 Thread AJ
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/*/*