summaryrefslogtreecommitdiff
path: root/gbp/config.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-09-14 17:21:09 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-05 14:20:05 +0300
commitd23bf900c9963d2d3fa6ddd7cc4ab5b1523d97c2 (patch)
tree8e18927f711a1cfa4fab70e1c7afa4c68625dd67 /gbp/config.py
parentf9774ad026f3e68e6e4bb6f7644f28f633155aa0 (diff)
downloadgit-buildpackage-d23bf900c9963d2d3fa6ddd7cc4ab5b1523d97c2.tar.gz
git-buildpackage-d23bf900c9963d2d3fa6ddd7cc4ab5b1523d97c2.tar.bz2
git-buildpackage-d23bf900c9963d2d3fa6ddd7cc4ab5b1523d97c2.zip
rpm: implement file path filters in patch export
Implements a filter option allows one to filter out changes to certain files/paths in the patch-generation. A commit is totally ignored if all files would be filtered out. The path filter is given as a Python regexp. This option is useful for example in filtering out the changes to packaging files when maintaining packaging and sources in the same branch. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 8c2921ad..2b2c8cb4 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -595,6 +595,7 @@ class GbpOptionParserRpm(GbpOptionParser):
'rpmbuild-srpmdir' : 'SRPMS',
'rpmbuild-buildrootdir' : 'BUILDROOT',
'patch-export' : 'False',
+ 'patch-export-ignore-path' : '',
'patch-export-compress' : '0',
'patch-export-squash-until' : '',
'pristine-tarball-name' : 'auto',
@@ -618,6 +619,9 @@ class GbpOptionParserRpm(GbpOptionParser):
"build with untracked files in the source tree, default is '%(ignore-untracked)s'",
'patch-export':
"Create patches between upstream and export-treeish, default is '%(patch-export)s'",
+ 'patch-export-ignore-path':
+ ("Exclude changes to path(s) matching regex, default "
+ "is '%(patch-export-ignore-path)s'"),
'patch-export-compress':
"Compress (auto-generated) patches larger than given number of bytes, 0 never compresses, default is '%(patch-export-compress)s'",
'patch-export-squash-until':