[darcs-users] How do you specify negative regex patterns?

Tommy Pettersson ptp at lysator.liu.se
Sat Nov 26 09:21:15 UTC 2005


On Sat, Nov 26, 2005 at 03:15:09PM +0800, Nimrod A. Abing wrote:
> I would like to be able to specify a pattern that would allow me to
> push patches not matching the pattern '^[0-9]+-local:'. Is there a way
> to specify a negative pattern or just simply negate a pattern match
> result? This would be similar to the perl operator !~.

darcs push --matches 'name bugfix && not name ^[0-9]+-local'

The quoting rules in match expressions are a little simplified.
I don't remember the exact rule now, but usually it's enough
to use "s, like: 'name "foo bar"' if there are spaces in
an argument.

The --patches option doesn't seem to combine with the
--matches option.


-- 
Tommy Pettersson <ptp at lysator.liu.se>




More information about the darcs-users mailing list