Login | Register
My pages Projects Community openCollabNet

Discussions > dev > ignore pattern - format change

Discussion topic

Back to topic list

ignore pattern - format change

Author pmarek
Full name P.Marek
Date 2006-10-30 21:22:42 PST
Message Hello everybody!

Thinking about the ignore patterns I think that the format should change.
Only a bit.

The new format (which is not implemented yet - I'd love to hear comments)
would be:
- the options (currently single-letter lowercase characters) would be
  arbitrary strings, whitespace delimited.
- unless there's an "=" in the string, only the first character is used
- there can be values after the "="; I don't know whether the whole part
  before "=" is used or only the first character.
- "-" at the beginning of options is ignored.

So an example is
  -take -ignore_case ./**/tmp

And where is this leading? I'd like to be able to differentiate between
the various types, ie. directories, files, devices, and symlinks;
eventually SGID, SUID.

ignore all devices in home:
  -type=BC ./home/**

allow devices only in ./dev:
  -take -type=BC ./dev/**
  -type=BC ./**

In this example we see that the options *without* parameters live in a
different namespace than the ones with. (Both have a "t".)

Comments? Ideas?



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

« Previous message in topic | 1 of 2 | Next message in topic »


Show all messages in topic

ignore pattern - format change pmarek P.Marek 2006-10-30 21:22:42 PST
     Re: ignore pattern - format change benjaminm Benjamin M. 2006-10-31 11:54:04 PST
Messages per page: