git_check_commit: shorted option name

* gcc-changelog/git_check_commit.py: Change
	--allow-non-strict-mode to --non-strict-mode.
This commit is contained in:
Martin Liska 2020-05-20 10:05:05 +02:00
parent 713890935d
commit 93db1f8055
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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> 2020-05-20 Martin Liska <mliska@suse.cz>
* gcc-changelog/git_commit.py: Support cherry pick * gcc-changelog/git_commit.py: Support cherry pick

View File

@ -28,14 +28,14 @@ parser.add_argument('-g', '--git-path', default='.',
help='Path to git repository') help='Path to git repository')
parser.add_argument('-p', '--print-changelog', action='store_true', parser.add_argument('-p', '--print-changelog', action='store_true',
help='Print final changelog entires') help='Print final changelog entires')
parser.add_argument('-n', '--allow-non-strict-mode', action='store_true', parser.add_argument('-n', '--non-strict-mode', action='store_true',
help='Allow non-strict mode (change in both ChangeLog and ' help='Use non-strict mode (allow changes in ChangeLog and '
'other files.') 'other automatically updated files).')
args = parser.parse_args() args = parser.parse_args()
retval = 0 retval = 0
for git_commit in parse_git_revisions(args.git_path, args.revisions, 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' res = 'OK' if git_commit.success else 'FAILED'
print('Checking %s: %s' % (git_commit.hexsha, res)) print('Checking %s: %s' % (git_commit.hexsha, res))
if git_commit.success: if git_commit.success: