On Friday 13 October 2006 21:15 Gunter Ohrner wrote:
> Am Mittwoch, 11. Oktober 2006 17:19 schrieb Philipp Marek:
> > > As the manual does not mention this at all and there is no privision
> > > to achor a globbing paattern explicitely, I think this is a bug.
> >
> > I know that this makes sense in a way - but using a pattern
> > like "./directory/" ignores currently everything below this directory,
> > which makes sense, too.
> >
> > How about a flag or allowing $ at the end?
>
> Allowing a "$" at the end of the pattern would be ok, but not intuitive -
> usually globbing patterns in UNIX do not know about a "$" but are
> anchored automatically. A flag in contrast would be fine, and/or
> unanchored behaviour if the strings ends with a "/" - that'd be also fine
> in my eyes, as it would not unexectedly match substrings in filenames and
> still allow easily ignoring whole subtrees in a natural way. There's also
> still the possibility to write "./dir/**" although that looks awkward and
> isn't intuitive, either.
>
> I think I'd opt for anchoring iif the last character is no slash.
> Excluding directories but not their contents doesn't make sense anyway.
> And if one really wants to mach a substring of a filename, one can
> write "./**/*bla*" or stuff like this. If more complex paatterns are
> desirec, PCREs are the way to go, anyway, but globbing patterns are more
> common and easier readable for the day-to-day filename matching tasks,
> IMHO.
>
> However, independant of the solution which will be implemented it's
> neccessary to be able to anchor the patterns (if that won't become the
> default behaviour) and to extend the IGNORING document with a sentence or
> two explaining the choosen behaviour. :-)
I wholeheartly agree with you.

Do you have a patch that does all this, maybe :-?

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to