On Tue, 19 May 2020 at 11:44, Martin Liška <mli...@suse.cz> wrote: > > Hello. > > We've just installed server git hooks that verify git messages > for a correct ChangeLog format. For a limited time period, please > still apply ChangeLog changes to the corresponding ChangeLog files. > We'll use it for comparison of auto-generated CangeLog entries. > > The format is documented here: > https://gcc.gnu.org/codingconventions.html#ChangeLogs > > And I would recommend to install the new 'git gcc-verify' hook from: > contrib/gcc-git-customization.sh > > Feel free to contact me about future troubles you'll see.
The --allow-non-strict-mode option seems unnecessarily verbose. It's not allowing non-strict mode, it's enabling it. Would --non-strict or --relaxed be better? And I don't understand the help text for it. 'Use non-strict mode (change in both ChangeLog and other files.' It seems that non-strict mode allows changes to certain "project files" that are not supposed to be manually edited, but I can't correlate that to "change in both ChangeLog and other files". It's also missing the closing parenthesis. Would this patch make sense?
diff --git a/contrib/gcc-changelog/git_check_commit.py b/contrib/gcc-changelog/git_check_commit.py index 8553c90a96f..d504be9dbde 100755 --- a/contrib/gcc-changelog/git_check_commit.py +++ b/contrib/gcc-changelog/git_check_commit.py @@ -28,9 +28,9 @@ 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