[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Default ignores, cmdline ignores

From: Sander Striker <striker_at_apache.org>
Date: 2002-08-09 15:54:04 CEST

> From: Mix [mailto:mixtim@acm.org]
> Sent: 09 August 2002 14:54

> Sander Striker wrote:
>> Currently we have some hardcoded 'default' ignores:
>>
>> static const char * const ignores[] =$
>> {
>> "*.o", "*.lo", "*.la", "#*#", "*.rej", "*~", ".#*",
>> /* what else? */
>> NULL
>> };
>>
>> Personally I think we should get rid of those. If
>> you wish to ignore something be explicit about it.
>
> I'd go crazy if I had to do the silly 'svn propset svn:ignore' thing
> everytime I wanted to stop seeing object files and all the crap emacs
> leaves around when you run it.

The problem is that this is very dependend on the applications you
use. For example, MS VC++ leaves around *.obj files instead of *.o
files. *.lo and *.la is something you won't see on windows (AFAIK),
instead you'll find *.dll. I'm sure there are a lot of other things
that are platform specific. I personally would only like to ignore
the things subversion leaves about by default.

Alternatively we could invent an

  ignore="<all the stuff you want to ignore by default>"

directive in your local svn config file. This line could hold the
current defaults by default, but at least people are able to change
it without a recompile.

> I like cvs's .cvsignore files better but
> I can live with svn:ignore as long as svn ignores things that are always
> junk like the list above. I mean really, when have you ever needed to
> add a file matching one of the expressions above? I'd be willing to bet
> if you ever did then it was a special case and you've probably only done
> it (on purpose) once in your life.

You'd be surprised what people do ;)

>> Secondly it would be very nice to pass --ignore <pattern>
>> or --ignore -F <filename> on the commandline. This
>> would indeed be very helpfull for svn import, but could
>> also be usefull for svn status.
>
> I agree -- that would be a very useful feature.

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 9 15:44:00 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.