[llvm-dev] [monorepo] Pre-push hook to prevent pushing merge commits

Louis Dionne via llvm-dev llvm-dev at lists.llvm.org
Fri Nov 9 11:33:32 PST 2018


Hi,

At the LLVM dev meeting, some people discussed the possibility of having pre-push and/or pre-commit hooks to avoid messing up the history when we move on to the monorepo. One of the concerns was about people starting to push merge commits and unsquashed commits upstream, resulting in a messy history.

I had volunteered to write a hook that would check for the absence of merge commits in the set of commits being pushed upstream, which I did. The hook is available here: https://gist.github.com/ldionne/2c260ce2081db74206e074e09cff71d0 <https://gist.github.com/ldionne/2c260ce2081db74206e074e09cff71d0>.

If there is any interest for something like this, the code’s there.

Cheers,
Louis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181109/8b7d156c/attachment.html>


More information about the llvm-dev mailing list