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

Re: [patch] add global ignore for .*~

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2002-09-28 21:36:01 CEST

Actually, I'd like to propose the opposite. Now that we have the config
option for a list of standard ignores, I'd like to see us remove the hardcoded
list. Some platforms, and working copies would have absolutely no reason to
ignore files ending with ~. They might be very important some places.

Quoting Robert Schiele <rschiele@uni-mannheim.de>:

> Hello.
>
> I propose to apply the following patch, as .*~ should be ignored with
> the same reason *~ is ignored.
>
> Robert
>
> * subversion/libsvn_wc/status.c
> (get_default_ignores): Added .*~ to default ignore list.
>
> * subversion/libsvn_subr/config_file.c
> (svn_config_ensure): Added .*~ to default ignore list.
>
> Index: subversion/libsvn_wc/status.c
> ===================================================================
> --- subversion/libsvn_wc/status.c
> +++ subversion/libsvn_wc/status.c 2002-09-28 21:01:37.000000000 +0200
> @@ -45,7 +45,7 @@
>
> SVN_ERR (svn_config_read_config (&cfg, pool));
> svn_config_get (cfg, &val, "miscellany", "global_ignores",
> - "*.o *.lo *.la #*# *.rej *~ .#*");
> + "*.o *.lo *.la #*# *.rej *~ .*~ .#*");
> *patterns = apr_array_make (pool, 4, sizeof (const char *));
> svn_cstring_split_append (*patterns, val, "\n\r\t\v ", FALSE, pool);
>
> Index: subversion/libsvn_subr/config_file.c
> ===================================================================
> --- subversion/libsvn_subr/config_file.c
> +++ subversion/libsvn_subr/config_file.c 2002-09-28 21:02:16.000000000
> +0200
> @@ -752,11 +752,11 @@
> "### Section for configuring miscelleneous Subversion options.\n"
> "### Set global_ignores to a set of whitespace-delimited globs\n"
> "### which Subversion will ignore in its `status' output. By\n"
> - "### default, this value is '*.o *.lo *.la #*# *.rej *~ .#*'.
> \n"
> + "### default, this value is '*.o *.lo *.la #*# *.rej *~ .*~ .#*'.
> \n"
> "### To turn off global ignores, simply set the value to be\n"
> "### empty (as in \"global_ignores = \").\n"
> "# [miscellany]\n"
> - "# global_ignores = *.o *.lo *.la #*# *.rej *~ .#*"
> + "# global_ignores = *.o *.lo *.la #*# *.rej *~ .*~ .#*"
> "\n"
> "### See
> http://subversion.tigris.org/issues/show_bug.cgi?id=668\n"
> "### for what else will soon be customized in this file.\n";
>
>
> --
> Robert Schiele Tel.: +49-621-181-2517
> Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson
kevin@pilch-bisson.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 28 21:36:45 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.