mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Add script to install post-commit hook, mention in devguide
This commit is contained in:
parent
41c66166e9
commit
664b106f64
5 changed files with 103 additions and 99 deletions
|
|
@ -67,6 +67,11 @@ features and bug fixes. The general steps for contributing are as follows:
|
|||
cd openmc
|
||||
git checkout -b newbranch develop
|
||||
|
||||
3. Run ``tools/dev/install-commit-hooks.sh`` to install a post-commit hook that
|
||||
runs clang-format on C++ files to apply :ref:`automatic code formatting
|
||||
<styleguide_formatting>`. In addition, you may want to configure your text
|
||||
editor to automatically run clang-format when saving C++ files.
|
||||
|
||||
3. Make your changes on the new branch that you intend to have included in
|
||||
*develop*. If you have made other changes that should not be merged back,
|
||||
ensure that those changes are made on a different branch.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue