Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn:ignore exclude a file from being ignored

Tags:

svn

svnignore

I have a directory which contains files with various extensions. I would like to do the equivalent of the following .gitignore code in svn:ignore:

*.* # ignore everything
!.htaccess # except this file

How do I achieve this in svn:ignore?

like image 413
jurchiks Avatar asked Oct 29 '25 01:10

jurchiks


2 Answers

If you've already added the .htaccess file to SVN control, then it won't matter. You will always see changes to that file. The only time the ignore list comes into play is for files which have not yet been added to the repository. You can ignore everything in the directory globally and still add the .htaccess file to SVN control and see modifications, etc.

like image 135
Ben Avatar answered Oct 30 '25 21:10

Ben


I don't think you can - svn:ignore takes in a blacklist (files to be ignored), not a whitelist (files that are not to be ignored).

like image 25
Sameer Singh Avatar answered Oct 30 '25 22:10

Sameer Singh