patch-generation: filter out changes to packaging dir
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 19 Sep 2012 05:35:33 +0000 (08:35 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 20 Sep 2012 06:21:07 +0000 (09:21 +0300)
Utilize the ignore-path functionality of git-buildpackage to ignore
changes made to the packaging files when generating patches.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gitbuildsys/cmd_export.py

index 4d445ca..3a0ad5d 100644 (file)
@@ -101,7 +101,8 @@ def create_gbp_export_args(repo, commit, export_dir, tmp_dir, spec, opts,
                      "--git-patch-export-compress=100k",
                      "--git-force-create",
                      "--git-patch-export-squash-until=%s" %
-                            squash_patches_until])
+                            squash_patches_until,
+                     "--git-patch-export-ignore-path=^packaging/.*"])
         if repo.has_branch("pristine-tar"):
             args.extend(["--git-pristine-tar"])