diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-07-06 10:00:27 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-01-16 07:02:07 +0100 |
commit | 9c80f1456448c140791f4ad45766d5939221aa2e (patch) | |
tree | bae6d8bebd740b15e64bb38a534fe35c7f51a700 | |
parent | ab7a73283b8e02263b4c6e17b107f964fe958f45 (diff) |
buildpackage: add 'force' option to write_wc()
To select whether to include file that would otherwise be ignored by
gitignore (.gitignore or .git/info/exclude).
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | gbp/scripts/common/buildpackage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/common/buildpackage.py b/gbp/scripts/common/buildpackage.py index 2c998959..0835711b 100644 --- a/gbp/scripts/common/buildpackage.py +++ b/gbp/scripts/common/buildpackage.py @@ -128,9 +128,9 @@ def dump_tree(repo, export_dir, treeish, with_submodules): return True -def write_wc(repo): +def write_wc(repo, force=True): """write out the current working copy as a treeish object""" - repo.add_files(repo.path, force=True, index_file=wc_index) + repo.add_files(repo.path, force=force, index_file=wc_index) tree = repo.write_tree(index_file=wc_index) return tree |