[patch] Globbing Pattern Anchoring Fix And Directory Match Extension (was: FSVS and ignore patterns)
Gunter Ohrner <G.Ohrner <at> post.rwth-aachen.de>
2007-04-03 20:39:18 GMT
Hi!
Ok, I splittet the patch previously called dir_ignore into two tiny chunks
which represent the two different concepts merged within the old patch.
The first one fixes a plain misbehaviour of the globbing pattern and makes
the implementation's behaviour match its documentation. Without this
patch, the example pattern "./sys" from the docs would also match files
and directories called "./system", "./sysiphus", and so on.
The second chunk extends the directory matching behaviour such
that "./abc/**" is equivalent to "./abc/", ie it ignores the directories'
contents but not the directory itself. I'm not sure if this behaviour is
desirable, but I consider it to be convenient... ;)
Greetings,
Gunter
--
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Although the scythe isn't pre-eminent among the weapons of war, anyone
who has been on the wrong end of, say, a peasants' revolt will know that
in skilled hands it is fearsome. -- (Terry Pratchett, Mort)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ PGP-verschlüsselte Mails bevorzugt! +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
(Continue reading)