]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc-changelog: Update revert_regex.
authorMartin Liska <mliska@suse.cz>
Mon, 28 Mar 2022 10:42:46 +0000 (12:42 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 28 Mar 2022 10:42:46 +0000 (12:42 +0200)
contrib/ChangeLog:

* gcc-changelog/git_commit.py: Match trailing dot literally.

contrib/gcc-changelog/git_commit.py

index 7e29934b4ad585240fbbb1bbf46ab2ad9e023194..a6b5ff04f221d683f1bfa9f2e87ca98d23218502 100755 (executable)
@@ -165,7 +165,7 @@ star_prefix_regex = re.compile(r'\t\*(?P<spaces>\ *)(?P<content>.*)')
 end_of_location_regex = re.compile(r'[\[<(:]')
 item_empty_regex = re.compile(r'\t(\* \S+ )?\(\S+\):\s*$')
 item_parenthesis_regex = re.compile(r'\t(\*|\(\S+\):)')
-revert_regex = re.compile(r'This reverts commit (?P<hash>[0-9a-f]+).$')
+revert_regex = re.compile(r'This reverts commit (?P<hash>[0-9a-f]+)\.$')
 cherry_pick_regex = re.compile(r'cherry picked from commit (?P<hash>\w+)')
 
 LINE_LIMIT = 100