summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-05-20 10:05:05 +0200
committerMartin Liska <mliska@suse.cz>2020-05-20 10:05:05 +0200
commit93db1f8055e58916cb8d1d2d6897ec6d6d7c7400 (patch)
treeab119cbfa290080bddd4a78cf7b5682b641b2493 /contrib
parent713890935db33b1e24abfae6a94bacc494f6412e (diff)
git_check_commit: shorted option name
* gcc-changelog/git_check_commit.py: Change --allow-non-strict-mode to --non-strict-mode.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rwxr-xr-xcontrib/gcc-changelog/git_check_commit.py8
2 files changed, 9 insertions, 4 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index e3eaf053031..b799a283f34 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,5 +1,10 @@
2020-05-20 Martin Liska <mliska@suse.cz>
+ * gcc-changelog/git_check_commit.py: Change
+ --allow-non-strict-mode to --non-strict-mode.
+
+2020-05-20 Martin Liska <mliska@suse.cz>
+
* gcc-changelog/git_commit.py: Support cherry pick
prefix.
* gcc-changelog/test_email.py: Test it.
diff --git a/contrib/gcc-changelog/git_check_commit.py b/contrib/gcc-changelog/git_check_commit.py
index 8553c90a96f..2601ae4f613 100755
--- a/contrib/gcc-changelog/git_check_commit.py
+++ b/contrib/gcc-changelog/git_check_commit.py
@@ -28,14 +28,14 @@ parser.add_argument('-g', '--git-path', default='.',
help='Path to git repository')
parser.add_argument('-p', '--print-changelog', action='store_true',
help='Print final changelog entires')
-parser.add_argument('-n', '--allow-non-strict-mode', action='store_true',
- help='Allow non-strict mode (change in both ChangeLog and '
- 'other files.')
+parser.add_argument('-n', '--non-strict-mode', action='store_true',
+ help='Use non-strict mode (allow changes in ChangeLog and '
+ 'other automatically updated files).')
args = parser.parse_args()
retval = 0
for git_commit in parse_git_revisions(args.git_path, args.revisions,
- not args.allow_non_strict_mode):
+ not args.non_strict_mode):
res = 'OK' if git_commit.success else 'FAILED'
print('Checking %s: %s' % (git_commit.hexsha, res))
if git_commit.success: