I'm running svn under Cygwin. This is the global-ignores line in my svn config:
global-ignores = .classpath .project ~*.docx *~ .settings
And yet I get the following result from svn stat :
$ svn stat
? .settings/org.eclipse.wst.jsdt.ui.superType.name
? .settings/org.eclipse.wst.jsdt.ui.superType.container
? .settings/org.eclipse.m2e.core.prefs
? .settings/.jsdtscope
Why does the .settings directory show up? If I add .foobar to global-ignores
global-ignores = .classpath .project ~*.docx *~ .settings .foobar
and create a new directory .foobar it is hidden from the status as expected:
$ mkdir .foobar
$ ls -d .*
. .. .classpath .foobar .metadata .project .settings
$ svn stat
? .settings/org.eclipse.wst.jsdt.ui.superType.name
? .settings/org.eclipse.wst.jsdt.ui.superType.container
? .settings/org.eclipse.m2e.core.prefs
? .settings/.jsdtscope
I've also tried the following global-ignores:
global-ignores = .classpath .project .settings
but the .settings still show up in the status.
It seems that .settings
is a versioned item. Run svn info .settings
to make sure. If it is versioned SVN won't ignore it - ignoring works only with unversioned items.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.