Vixiom Axioms

February 21, 2007

How to: Ignore all files in a directory (folder) with subversion

Filed under: svn Alastair @ 2:41 pm

The ignore command for subversion can be confusing. Ignoring certain files types is pretty easy:

$ svn propset svn:ignore “*.log” log

but ignoring folders is tricky and was giving me headaches for a while. I was using file_column (in Rails) to save uploaded photos and whenever I did a svn status I would get a list of all my test uploads:

?      public/photo/filename/106
?      public/photo/filename/116
?      public/photo/filename/126
?      public/photo/filename/117
?      public/photo/filename/127
?      public/photo/filename/128
?      public/photo/filename/129

Which made it hard to find files I wanted to add. Here’s how to ignore a directory:

svn propset svn:ignore “*” public/photo/
Digg! submit How to: Ignore all files in a directory (folder) with subversion to stumbleupon.com submit How to: Ignore all files in a directory (folder) with subversion to del.icio.us submit How to: Ignore all files in a directory (folder) with subversion to reddit.com Like this post? subscribe to the feed.

3 Comments »

  1. Thank you very much. You made my day

    Comment by serkanyersen — February 5, 2008 @ 6:26 am

  2. Thanks buddy.. it help me lot.

    Comment by Gaurav — March 25, 2008 @ 4:14 am

  3. Thanks! I’ve been trying to do this for ages and this is the first thing I’ve tried that actually worked :D!

    Comment by James — November 19, 2008 @ 12:45 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image

Powered by WordPress