[MERGE] no default ignores
Robert Collins
robertc at robertcollins.net
Mon Jun 12 14:52:15 BST 2006
On Mon, 2006-06-12 at 09:41 -0400, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Matthieu Moy wrote:
> > Robert Collins <robertc at robertcollins.net> writes:
> >
> >
> >>This small patch removes the default ignores list.
> > But this raises the need for a better way to add a lot of patterns at
> > a time in .bzrignore.
> >
> > I posted an idea a while ago, that nobody (including me) took time to
> > implement yet: provide packages of ignore patterns for common
> > software:
> >
> > $ bzr ignore --package latex
>
> While this would probably be good, I like the three-step project setup:
> init, add, commit. So I think it might make sense to add a --defaults
> parameter to init, e.g. "$bzr init --defaults latex". This could also
> provide other defaults, as time goes on.
I think a patch to do this sort of thing, with plugins able to add
project type definitions would be good.
> I will add that I never want to add .pyc files or vim editor backups, so
> I would appreciate if init provided a minimal default .bzrignore.
I spoke with Martin about this, and we agreed that providing no defaults
made sense. The rationale is that no default we choose will be right for
everyone, and its easy to customise and tweak, so its reasonable to go
with no default.
> I think it might make sense to bump the format of the ignore file, so
> that existing working trees would still use global ignores, but new and
> upgraded working trees would not.
This is a lot more involved that it sounds: at a minimum it involves a
new repository format... Jan Hudec has done a lot of work on a clean way
to transform .bzrignore into versioned data instead of being a versioned
file, and I think we should continue with that with the intent to merge
bits of it as they mature, or all of it eventually.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060612/b56280e3/attachment.pgp
More information about the bazaar
mailing list