From 9c80f1456448c140791f4ad45766d5939221aa2e Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 6 Jul 2012 10:00:27 +0300 Subject: 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 --- gbp/scripts/common/buildpackage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gbp') diff --git a/gbp/scripts/common/buildpackage.py b/gbp/scripts/common/buildpackage.py index 2c99895..0835711 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 -- cgit v1.2.3