Is there a way to test the results of the svn:ignore property without doing a commit first?
I have a large svn project that I reorganized locally using git. Now I need to apply the svn:ignore property to match the .gitignore file. I'd like to test that all my changes to the svn:ignore property work properly before I do a commit. Is there a way to do this?
I know could work on a branch until I get it right and then merge, but it seems there should be an easier way.
You can test your
svn:ignore
before you commit your change with thesvn:ignore
property. Create files and/or directories to be ignored. Don't do asvn add
. Just add the files to your working directory.Then, do a
svn ignore
. Those files added to your working directory should not show up. (REMEMBER: Don't dosvn add
for these files!). After that, you can do asvn status --no-ignore
and the files being ignored should show up with a status ofI
.I find it easier to set your
VISUAL
environment variable, and then usesvn pe svn:ignore
since each ignored file specification should be on its own line.Remember, if a file is already in your repository, it cannot be ignored.