summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-02-27 11:12:11 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-02-27 11:14:17 +0200
commit0d21f3fb1ce3dd04335654d9c8d61c5d1c299d3c (patch)
treecb0eb92e8315c5172269a41f2af52f470d0f61bb
parent2312240dae9019e9692d2dbddcfe908560670d9c (diff)
downloadgit-buildpackage-0d21f3fb1ce3dd04335654d9c8d61c5d1c299d3c.tar.gz
git-buildpackage-0d21f3fb1ce3dd04335654d9c8d61c5d1c299d3c.tar.bz2
git-buildpackage-0d21f3fb1ce3dd04335654d9c8d61c5d1c299d3c.zip
rpm-ch: commit all staged files with --tag
This way you can update multiple files in the same commit (e.g. spec file or debian changelog). Change-Id: I27c91dfd4c2d920b7f334253959d2aeae3dba8ea Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rwxr-xr-xgbp/scripts/rpm_changelog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/rpm_changelog.py b/gbp/scripts/rpm_changelog.py
index 8fae8a81..1aefaf6f 100755
--- a/gbp/scripts/rpm_changelog.py
+++ b/gbp/scripts/rpm_changelog.py
@@ -309,8 +309,8 @@ def update_changelog(changelog, commits, repo, spec, options):
def commit_changelog(repo, changelog, author, committer):
"""Commit changelog and create a packaging/release tag"""
repo.add_files(changelog.path)
- repo.commit_files(changelog.path, "Update changelog", author_info=author,
- committer_info=committer, edit=True)
+ repo.commit_staged("Update changelog", author_info=author,
+ committer_info=committer, edit=True)
def parse_args(argv):