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
@@ -122,38 +123,21 @@ If you choose to set the `$PATH` later, please export TALISMAN\_HOME=$HOME/.tali
122
123
123
124
- you can set SEARCH_ROOT environment variable with the path of the base directory before executing the installation so you don't need to input it manually during the installation
*Disclaimer: Talisman cannot guarantee its functionality in Microsoft's unsupported versions of Windows. Anyway Talisman is successfully tested on Windows 7 and server 2008 R2, which might not work in future releases.*
143
-
144
-
# Using with hook frameworks
128
+
## Using with hook frameworks
145
129
146
130
Globally installing talisman as a hook will not clobber any existing hooks. If
147
131
the installation script finds any existing hooks, it will only indicate so on
148
132
the console. To run multiple hooks we suggest using a hook framework, such as
149
133
pre-commit or husky. These instructions assume that the talisman executable is
150
134
installed somewhere on your system's path.
151
135
152
-
## Pre-commit
136
+
###Pre-commit
153
137
154
-
Use [pre-commit](https://pre-commit.com)tool to manage all the existing hooks
155
-
along with Talisman. In the suggestion, it will prompt the following code to be
156
-
included in .pre-commit-config.yaml:
138
+
Use [pre-commit](https://pre-commit.com) to manage existing hooks along with
139
+
Talisman. Reference our [pre-commit-hooks](.pre-commit-hooks.yaml) in your
140
+
`.pre-commit-config.yaml`:
157
141
158
142
```yaml
159
143
- repo: https://github.com/thoughtworks/talisman
@@ -165,7 +149,7 @@ included in .pre-commit-config.yaml:
165
149
entry: cmd --githook pre-commit
166
150
```
167
151
168
-
## Husky
152
+
### Husky
169
153
170
154
[husky](https://typicode.github.io/husky) is an npm module for managing hooks.
171
155
Add the following line to the husky pre-commit configuration in your
@@ -175,6 +159,17 @@ Add the following line to the husky pre-commit configuration in your
175
159
talisman --githook pre-commit
176
160
```
177
161
162
+
## Directly invoking talisman
163
+
164
+
Once the talisman executable is [installed](#install-onto-path-recommended-approach)
165
+
you can configure a standalone pre-commit hook for a git repository:
Since release v0.4.4, Talisman <b>automatically updates</b> the binary to the latest release, when the hook is invoked (at pre-commit/pre-push, as set up). So, just sit back, relax, and keep using the latest Talisman without any extra efforts.
0 commit comments