diff options
author | Martin Liska <mliska@suse.cz> | 2020-05-19 21:16:10 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-05-19 21:17:09 +0200 |
commit | 4a5d072ad97d7d4fd003efff953a6202afd176a0 (patch) | |
tree | d0ca35c3c88180e16949e85b476f970ebe3d4d3e /contrib/gcc-changelog/git_commit.py | |
parent | c0d8623ce5aa6d92c2e6c62e1bee66272a011f59 (diff) | |
download | gcc-4a5d072ad97d7d4fd003efff953a6202afd176a0.zip gcc-4a5d072ad97d7d4fd003efff953a6202afd176a0.tar.gz gcc-4a5d072ad97d7d4fd003efff953a6202afd176a0.tar.bz2 |
Use commit timestamp in git_update_version.py.
* gcc-changelog/git_commit.py: Add param use_commit_ts
for to_changelog_entries.
* gcc-changelog/git_update_version.py: Se use_commit_ts to True.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
-rwxr-xr-x | contrib/gcc-changelog/git_commit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 5214cc3..f6b9c5b 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -500,11 +500,11 @@ class GitCommit: err = Error(msg % (entry.folder, changelog_location), file) self.errors.append(err) - def to_changelog_entries(self): + def to_changelog_entries(self, use_commit_ts=False): for entry in self.changelog_entries: output = '' timestamp = entry.datetime - if not timestamp: + if not timestamp or use_commit_ts: timestamp = self.date.strftime('%Y-%m-%d') authors = entry.authors if entry.authors else [self.author] # add Co-Authored-By authors to all ChangeLog entries |