[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DEP-5: Files field and filename patterns

On Thu, 26 Aug 2010 08:39:54 +0900, Charles Plessy wrote:

> > * Are find -name/-path globs a better idea than .gitignore?
> > * Are shell-style globs the right idea? Should we use Perl regular
> > expressions on the entire pathname instead?

> I think that we can, and should, keep the rest of the syntax simple by using
> only the shell wildcards ‘?’ and ‘*’. I have not worked on any package where a
> more complex syntax would be needed.

I agree that shell globs are probably the easiest way both to write
(without checking pattern rules) and test (with a simple `ls'). [0]

When I look at gitignore(5) I find in the example:

  # ignore objects and archives, anywhere in the tree.

I don't think the "anywhere in the tree" part is desirable for
> Adding an exclusion syntax with ‘!’ has some use, but it would be to the
> expense of being able to paste the field's value, and between the two I prefer
> being able to paste.

I haven't missed the exclusions so far, but I don't mind them either.


I've fact I've written shell-style patterns free-handedly so far and
hoped that they would also be valid for `find' :)
 .''`.   http://info.comodo.priv.at/ -- GPG key IDs: 0x8649AA06, 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: Canti Sociali: Bandiera rossa

Attachment: signature.asc
Description: Digital signature

Reply to: