monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] restrictions - status, diff and commit commands are


From: Eric Meyer
Subject: Re: [Monotone-devel] restrictions - status, diff and commit commands are working
Date: Tue, 6 Jul 2004 13:12:50 -0400
User-agent: Internet Messaging Program (IMP) 4.0-cvs

I would strongly urge you not to create a new syntax, but instead reuse either
glob, regexp, or Ant pattern matching. My personal preference would be Ant
syntax, but regexp would be a handy alternative.
 
> these seem to fit the mold above quite nicely but the --include/--exclude
> syntax is really
> not very nice. I'd like a better way of specifying things that still allows
> for a mix of
> includes and excludes so that large chunks of the working copy can be
> included or excluded
> easily. Presumably a simple list of files (i.e. *.cc) should suffice as a
> list of things
> to include with everything else excluded.
> 
> I've wondered about something like ~file (or ~prefix) to exclude a specific
> file or bunch
> of files with a common prefix. Also !file, etc. but this wouldn't be very
> nice for
> excluding a globbed list of files. Perhaps ! or ~ or - should invert the
> current
> include/exclude context allowing for something like:
> 
> $ monotone status *.c ~ foo* ~ bar*
> 
> to include all .c files in the current directory, exclude foo* and include
> bar*. Perhaps
> using + and - would be good, with an implicit + at the front of the list?
> 
> $ monotone status *.c - foo* + bar*
> 
> Hmm... I kinda like that.
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]