Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accurev .acignore

Tags:

accurev

I have a directory tree under accurev. In this tree I have a directory work which I want to exclude from versioning for good (including subdirectories). Can I use .acignore?

like image 368
Michael Avatar asked Feb 15 '12 03:02

Michael


2 Answers

Yep, you'll need two entries in .acignore for that: one to exclude the directory and the other to exclude its contents (including sub-directories), e.g

myproject/bin/Debug
myproject/bin/Debug/*

Just keep/promote the .acignore file in the parent of the "myproject" subdirectory.

like image 139
Dan Nolan Avatar answered Sep 28 '22 17:09

Dan Nolan


that is precisely what that file is for.

just add an entry like this to exclude the "work" directory:

path/to/directory/work

or, if you want to exclude all files and folders named "work" do this:

**/work

i just tested this to ensure it will work. under accurev version 5.7, you do not require a separate entry to exclude the contents of "work". however, i wouldn't recommend using the "**" wildcard for such a generic file name "work".

if you want to share your .acignore file with other users of your project be sure to promote the .acignore file itself so that others can pull it down.

this is the .acignore file that i put in the root of any accurev repository on my machine to exclude standard maven, intellij, eclipse, and git files:

**/target
**/.idea
**/.metadata
**/.classpath
**/.project
**/.settings
**/.git
**/*.iml
**/*.ipr
**/.gitignore
**/atlassian-ide-plugin.xml

that said, i did once have a colleague break our continuous integration build by creating a package named "target", so use that one with caution.

like image 21
james turner Avatar answered Sep 28 '22 17:09

james turner