diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-10-19 17:38:34 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-10-19 17:38:34 -0400 |
commit | 4ec04b405f8a9965374eca8d18815d88a009ef21 (patch) | |
tree | e41eabdcf5d233fcc3fe12684135b0117e29c88a | |
parent | 305bec5d7ea8bb287efff732764d2722f09a3094 (diff) |
[docs] include leap commit template from the docs
-rw-r--r-- | docs/hacking/index.rst | 7 | ||||
-rw-r--r-- | docs/hooks/leap-commit-template.README | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/docs/hacking/index.rst b/docs/hacking/index.rst index 2a48a7b1..4826f483 100644 --- a/docs/hacking/index.rst +++ b/docs/hacking/index.rst @@ -44,7 +44,12 @@ Merge requests to https://0xacab/leap/bitmask-dev Coding conventions --------------------------------- * pep8 -* pre-commit hook (more utils in docs/hooks folder) +* Git messages should be informative. +* There is a pre-commit hook ready to be used in the ``docs/hooks`` folder, + alongside some other hooks to do autopep8 on each commit. + +.. include:: ../hooks/leap-commit-template.README + :literal: Pinning ---------------------------------- diff --git a/docs/hooks/leap-commit-template.README b/docs/hooks/leap-commit-template.README index ce8809e7..e54c037d 100644 --- a/docs/hooks/leap-commit-template.README +++ b/docs/hooks/leap-commit-template.README @@ -2,10 +2,9 @@ HOW TO USE THIS TEMPLATE: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Run `git config commit.template docs/leap-commit-template` or +Run `git config commit.template docs/hooks/leap-commit-template` or edit the .git/config for this project and add -`template = docs/leap-commit-template` -under the [commit] block +`template = docs/hooks/leap-commit-template` under the [commit] block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ COMMIT TEMPLATE FORMAT EXPLAINED |