You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Via post-checkout hook you create/recreate the symlink to your hooks directory after every `git clone` of `git checkout`. [Documentation](https://git-scm.com/docs/githooks#_post_checkout).
59
+
After every `git clone` and `git checkout` the post-checkout hook will create or recreate symlink to your hooks directory. [Documentation](https://git-scm.com/docs/githooks#_post_checkout).
60
60
61
-
#### 4. If need - change default configuration
61
+
#### 4. Change default configuration if needed
62
62
63
-
1.Looks on`hooks/_default_settings.sh`<br>
64
-
If you'd like change something:
63
+
1.Look into`hooks/_default_settings.sh`<br>
64
+
If you'd like to change something:
65
65
2. Create `hooks/_user_defined_settings.sh`
66
66
3. Copy settings for change from `default` to `user_defined`
67
67
4. Change settings in `hooks/_user_defined_settings.sh`
68
68
69
+
##### Availble settings
70
+
71
+
| Constant | What it changes | Default | Affects |
|`COLOR_INFO`| Change default output color for Information messages.<br>[Available colors](https://github.com/pdffiller/styleguide-hooks/blob/stable/hooks/color_echo.sh). |`"Light_Blue"`|`pre-commit`|
74
+
|`COLOR_WARNING`| Change default output color for Warning/<br>Interaction needed messages. [Available colors](https://github.com/pdffiller/styleguide-hooks/blob/stable/hooks/color_echo.sh). |`"Yellow"`|`pre-commit`|
75
+
|`IGNORE_TRAILING_`<br>`SPACE_EXTENTIONS`| Ignore trailing whitespaces for specified file extentions. Format `ext1\|ext2\|ext3`. |`"md\|rst"`|`pre-commit`|
76
+
|`INTERACTIVE_MODE`| Pseudo-interactive mode for:<br>1. Replacing trailing whitespaces<br>2. Removing multilines at EOF<br>3. Adding new line at EOF if it doesn't exist<br>Can be `disabled` or `enabled`. |`"disabled"`|`pre-commit`|
77
+
|`FOOTER`| Styleguide message that is added to every error message. |[[1]](#long-defaults)|`pre-commit`|
78
+
|`GITHUB_REGEX`| Regex for matching Github issue inside branch name. A link to issue is created if a match was found. |`'^[0-9]+$'`|`pre-commit`,<br>`prepare-commit-msg`|
79
+
|`JIRA_ISSUE_LINK`| Link to Jira task endpoint. |[[2]](#long-defaults)|`prepare-commit-msg`|
80
+
|`JIRA_REGEX`| Regex for matching Jira issue inside branch name. A link to issue is created if a match was found.<br>[Default Jira regex](https://tinyurl.com/yd48c5op). |`'^[A-Z]{2,}-[0-9]+'`|`pre-commit`,<br>`prepare-commit-msg`|
81
+
|`STYLE_GUIDE_LINK`| Commit message styleguide format link. |[[3]](#long-defaults)|`prepare-commit-msg`|
0 commit comments