]> arthur.barton.de Git - bup.git/commit
Add support for "bup index --exclude-rx <pattern> ...".
authorRob Browning <rlb@defaultvalue.org>
Sat, 21 Jul 2012 20:09:47 +0000 (15:09 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 24 Mar 2013 00:57:29 +0000 (19:57 -0500)
commitcb354ed6baf6699f92717f42eb70d9bb6ff82933
tree77c8d147e01ca1f17f3c310ac2900e58117d3498
parentc44785b4cd6827eda661032fcef87a1dfdcd4011
Add support for "bup index --exclude-rx <pattern> ...".

When --exclude-rx <pattern> is provided to bup index, exclude any path
matching <pattern>, which must be a Python regular expression
(http://docs.python.org/library/re.html).  The pattern will be
compared against the full path, without anchoring, so "x/y" will match
"ox/yard" or "box/yards".  To exclude the contents of /tmp, but not
the directory itself, use "^/tmp/.".

You may check the behavior at runtime by setting BUP_DEBUG=2 in the
environment.

Thanks to Zoran Zaric <zz@zoranzaric.de> for reporting a bug in an
earlier version of this patch.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Documentation/bup-index.md
cmd/index-cmd.py
lib/bup/drecurse.py
lib/bup/helpers.py
t/test.sh