简体   繁体   中英

svn global-ignores to ignore contents of a specific directory, but no the directory itself

I'm using SVN 1.7.5 from a Linux command line.

I have a directory that I do build tasks in called CMakeBuild . I like to keep this directory subverted as part of the repository since when I check out this project fresh on a new machine, the directory is there and ready to use. However, I would like to ignore all the files and directories (recursively) within this directory (as it's a lot of generated CMake build stuff).

I'd like to do this globally rather than on a project-by-project basis (since I have a lot of projects with the same set-up). So I'm trying not to do a recursive svn propedit.

Adding CMakeBuild to my global-ignores doesn't work, since the directory is already part of a repository (or many repositories, actually).

I've tried adding CMakeBuild/* and also */CMakeBuild/* as well, but this doesn't seem to help.

Is there a way to ignore all the files and directories in a specific directory, which itself belongs to a repository?

Regards, Madeleine.

You can not implement this in Subversion by your style

Ignoring Unversioned Items clearly states:

  • Only file-patterns (globs) can be used, without path
  • Ignored files must be defined as property of parent dir
  • svn:ignore is not recursive

If CMake-artifacts have unique extensions, not used anymore in repository, you can try to use global-ignores runtime

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM