views:

32

answers:

1

I'm always having troubles with svn:ignore, but this time I think I may be attempting something impossible.

assuming dir structure:

/
   /foo
   /bar
   /web
      /uploads
          /assets
          /avatars
              /fu
                  /*.jpg
              /ba
                  /*.jpg
              keepme.jpg
              keepmetoo.jpg

I want to be ignore all subfolders of the avatars directory but not the files of that directory (keepme.jpg, keepmetoo.jpg).

The avatar subfolders (fu, ba) are auto generated and the names cannot be predetermined, so need to completely ignore all /avatar subfolders.

Is this possible? and how?

A: 

Setting up a start-commit hook could be a solution.

zellus