From 4ec04b405f8a9965374eca8d18815d88a009ef21 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Wed, 19 Oct 2016 17:38:34 -0400 Subject: [docs] include leap commit template from the docs --- docs/hacking/index.rst | 7 ++++++- docs/hooks/leap-commit-template.README | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/hacking/index.rst b/docs/hacking/index.rst index 2a48a7b..4826f48 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 ce8809e..e54c037 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 -- cgit v1.2.3