Set svn:ignore for multiple files from command line

I just faced faced the problem that I wnated to use the “svn setprop” command on the command line to ignore multiple elements. You could create a file which contains a newline seperated list of files to ignore and pass this file with -F.

svn propset svn:ignore -F ignorelist.txt .

But this requires an additional file. I found the solution in the comments of this article: You could just open quotes and then enter newlines on the command line itself, until the quotes are closed. This means you can use it like this:

svn propset svn:ignore “first
 second
 third” .
Advertisements

2 thoughts on “Set svn:ignore for multiple files from command line

  1. Pingback: How to: How do I ignore files in subversion? | SevenNet

  2. Pingback: Fix: How do I ignore files in subversion? #it #answer #dev | IT Info

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s