|
| 1 | +[hooks] |
| 2 | + from-domain = gcc.gnu.org |
| 3 | + mailinglist = /git/gcc.git/hooks-bin/email_to.py |
| 4 | + |
| 5 | + # We do not want to force a maximum line length in commit |
| 6 | + # revision logs, as they get in the way of copy-pasting |
| 7 | + # debugging session, error messages, logs, etc. |
| 8 | + max-rh-line-length = 0 |
| 9 | + |
| 10 | + # We allow a 0.5MiB email diff maximum. |
| 11 | + max-email-diff-size = 524288 |
| 12 | + |
| 13 | + # Reject merge commits on a certain number of branches: |
| 14 | + # - on master: We request that people rebase their changes |
| 15 | + # before pushing instead (merge commits tend to confuse |
| 16 | + # git newcomers). |
| 17 | + # - on release: We apply the same policy to release branches |
| 18 | + # as we have on master. |
| 19 | + reject-merge-commits = refs/heads/master,refs/heads/trunk,refs/heads/releases/.* |
| 20 | + |
| 21 | + # The URL where we can inspect the commit, inserted in the commit |
| 22 | + # notification email, and also copy sent to the file-commit-cmd. |
| 23 | + commit-url = "https://gcc.gnu.org/g:%(rev)s" |
| 24 | + |
| 25 | + # This style checker does nothing at present. |
| 26 | + style-checker = /git/gcc.git/hooks-bin/style_checker |
| 27 | + |
| 28 | + # Send a copy to bugzilla if a commit has a PR number in it. |
| 29 | + # The script is a wrapper around |
| 30 | + # /sourceware/infra/bin/email-to-bugzilla. |
| 31 | + file-commit-cmd = "/git/gcc.git/hooks-bin/email-to-bugzilla-filtered" |
| 32 | + |
| 33 | + # Work around <https://github.com/AdaCore/git-hooks/issues/9> |
| 34 | + # to allow larger merges. |
| 35 | + max-commit-emails = 5000 |
| 36 | + |
| 37 | + # Allow deliberate merges to use the default commit message. |
| 38 | + # Branches that do not allow merge commits are listed in |
| 39 | + # reject-merge-commits. |
| 40 | + disable-merge-commit-checks = true |
| 41 | + |
| 42 | + # Do not send emails for commits that are already in the |
| 43 | + # repository being added to development branches or user or |
| 44 | + # vendor branches (through merges or rebases). |
| 45 | + email-new-commits-only = refs/heads/devel/.* |
| 46 | + email-new-commits-only = refs/users/.* |
| 47 | + email-new-commits-only = refs/vendors/.* |
| 48 | + |
| 49 | + # GCC-specific ref naming conventions for user and vendor |
| 50 | + # branches. |
| 51 | + branch-ref-namespace = refs/users/[^/]*/heads/.* |
| 52 | + branch-ref-namespace = refs/vendors/[^/]*/heads/.* |
| 53 | + |
| 54 | + # GCC-specific ref naming conventions for user and vendor |
| 55 | + # tags. |
| 56 | + tag-ref-namespace = refs/users/[^/]*/tags/.* |
| 57 | + tag-ref-namespace = refs/vendors/[^/]*/tags/.* |
| 58 | + |
| 59 | + # Branch deletion is disabled by default. |
| 60 | + restrict-branch-deletion = true |
| 61 | + |
| 62 | + # Branch deletion is allowed for user and vendor branches. |
| 63 | + allow-delete-branch = refs/users/[^/]*/heads/.* |
| 64 | + allow-delete-branch = refs/vendors/[^/]*/heads/.* |
| 65 | + |
| 66 | + # Non-fast-forward updates are allowed in the user and vendor |
| 67 | + # namespaces. |
| 68 | + allow-non-fast-forward = refs/users/.* |
| 69 | + allow-non-fast-forward = refs/vendors/.* |
| 70 | + |
| 71 | + # Message to give for rejected branch deletion. |
| 72 | + rejected-branch-deletion-tip = Branch deletion is only allowed for user and vendor branches. If another branch was created by mistake, contact an administrator to delete it on the server with git update-ref. If a development branch is dead, also contact an administrator to move it under refs/dead/heads/ rather than deleting it. |
| 73 | + |
| 74 | + # Commit messages should not be restricted to ISO-8859-15. |
| 75 | + no-rh-character-range-check = true |
| 76 | + |
| 77 | + # Custom checker script for each new commit of each ref being |
| 78 | + # updated. This makes several checks on the commit message, |
| 79 | + # including for ChangeLog formatting and contents. |
| 80 | + commit-extra-checker = /git/gcc.git/hooks-bin/commit_checker |
| 81 | + |
| 82 | + # Custom checker script for ref updates. This checks for |
| 83 | + # branch naming conventions and not introducing new references |
| 84 | + # to the git-svn history. |
| 85 | + update-hook = /git/gcc.git/hooks-bin/update_hook |
| 86 | + |
| 87 | + # Custom email formatter. This inserts GCC monotonically |
| 88 | + # increasing commit ids in the commit emails. |
| 89 | + commit-email-formatter = /git/gcc.git/hooks-bin/commit_email_formatter |
| 90 | + |
| 91 | + # For GCC/Rust development that happens outside of GCC proper, |
| 92 | + # <https://rust-gcc.github.io/>, the Git commit messages |
| 93 | + # don't always adhere to standard GCC style; see |
| 94 | + # <https://github.com/Rust-GCC/gccrs/issues/143>. |
| 95 | + no-precommit-check = refs/heads/devel/rust/.* |
0 commit comments