diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-02-27 11:12:11 +0200 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-02-27 11:14:17 +0200 |
commit | 0d21f3fb1ce3dd04335654d9c8d61c5d1c299d3c (patch) | |
tree | cb0eb92e8315c5172269a41f2af52f470d0f61bb | |
parent | 2312240dae9019e9692d2dbddcfe908560670d9c (diff) | |
download | git-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-x | gbp/scripts/rpm_changelog.py | 4 |
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): |