l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Jan 15 22:46

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] subversion - setting the svn:ignore property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] subversion - setting the svn:ignore property

Peter Jay Salzman wrote:
> I'm having a difficult time figuring out how to set the svn:ignore property.
> There's a repository that includes a directory:
>    smarty/templates_c
> with lots of 'stuff' in it.  I'd like for svn to ignore anything in this
> directory.  I'd also like svn to ignore any file in the repository that ends
> with ".swp" (vim swap files).
> I tried:
>    svn propset svn:ignore 'smarty/templates_c/*'

The property svn:ignore can be found on the directory containing what
you want to ignore.

If the templates_c directory is a directory in your repository, then you
want to do as follows:

svn propset svn:ignore '*' smarty/templates_c

If templates_c is not a directory in your repository, then do as follows:

svn propset svn:ignore 'templates_c' smarty

It may be less confusing to use svn propedit as follows

svn propedit svn:ignore smarty
(enter the desired wildcards into the editor)

Here's a cool little bash script I use to set svn:ignore in directories
containing LaTex files:

svn propset svn:ignore "$(svn propget svn:ignore .)
*.swp" .

(note the multiline string)

svn propget works even when the property hasn't been set before.


I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.

Attachment: signature.asc
Description: OpenPGP digital signature

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.