[all-commits] [llvm/llvm-project] bd3e8e: code-format: Improve the code-format-helper to be ...
Tobias Hieta via All-commits
all-commits at lists.llvm.org
Mon Dec 11 00:35:41 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bd3e8eb6e325081bf7cfbe93652aa825de3170e5
https://github.com/llvm/llvm-project/commit/bd3e8eb6e325081bf7cfbe93652aa825de3170e5
Author: Tobias Hieta <tobias at hieta.se>
Date: 2023-12-11 (Mon, 11 Dec 2023)
Changed paths:
M llvm/utils/git/code-format-helper.py
Log Message:
-----------
code-format: Improve the code-format-helper to be able to run as a git hook (#73957)
As part of #73798 there was some discussion about using the format
helper to run from a git-hook. That was not possible for a number of
reasons, but with these changes it can now be installed as a hook and
then run on the local cache in git instead of a diff between revisions.
This also checks for two environment variables DARKER_FORMAT_PATH and
CLANG_FORMAT_PATH where you can specify the path to the program you want
to use.
More information about the All-commits
mailing list