Re: [petsc-dev] make checkclangformat checkbadSource dependencies

2023-06-18 Thread Barry Smith
Jacobi, Thanks for the reminder about using hooks for this purpose. Perhaps git hooks are not understood well enough at the time by the masses (that is, me), or perhaps hooks were presented as THE solution, not as a tool for helping users to get to the solution? That is, git-hooks as a wa

Re: [petsc-dev] make checkclangformat checkbadSource dependencies

2023-06-18 Thread Jacob Faibussowitsch
> I want to automatically run make checkclangformat checkbadSource before every > git push (because I am an idiot and have too many silly failed CIs due to bad > source). What you *actually* want are git hooks (https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) combined with clang-form

[petsc-dev] make checkclangformat checkbadSource dependencies

2023-06-18 Thread Barry Smith
I have never understood how to do make rule dependencies when one is not explicitly generating new files from old ones. For example, .o from .c I want to automatically run make checkclangformat checkbadSource before every git push (because I am an idiot and have too many silly failed CIs due