-
Notifications
You must be signed in to change notification settings - Fork 13
Description
In GCC, we use the commit-extra-checker to make several checks on commits pushed to the GCC repository. Some of those commits apply to all branches, and some only to master and release branches.
We've observed the following at least once: a commit gets pushed to a branch that is not master or a release branch, so subject to weaker changes, then the same commit gets pushed to master, so bypassing the stronger checks that the commit-extra-checker script applies to commits going on master.
Thus, we'd like that hook, or something equivalent, to apply to all commits new to the ref being updated, whether or not they are new to the repository. But at the same time, we don't want to recheck 187113 existing commits, many of which would fail the checks, when a new branch is created based on master; this is only about updates to existing branches. Maybe we need a way to distinguish "checks for commits new to the repository" (which shouldn't depend on the ref being updated) from "checks for commits new to an existing ref" (which should apply to existing commits, not just commits new to the repository).