Skip to content

Commit

Permalink
watch on files config key
Browse files Browse the repository at this point in the history
  • Loading branch information
A.A.Abroskin committed May 13, 2019
1 parent 567c58d commit cde2a79
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ brew install Arkweid/lefthook/lefthook
sudo snap install --devmode lefthook
```

### AUR for Arch

You can install lefthook [package](https://aur.archlinux.org/packages/lefthook) from AUR

Or take it from [binaries](https://github.com/Arkweid/lefthook/releases) and install manually

## Scenarios
Expand Down Expand Up @@ -359,7 +363,7 @@ pre-commit:
skip: true
```
## Skip hoookah execution
## Skip lefthook execution
We can set env variable `LEFTHOOK` to zero for that

Expand Down
Binary file modified .npm/bin/lefthook-linux
Binary file not shown.
Binary file modified .npm/bin/lefthook-mac
Binary file not shown.
Binary file modified .npm/bin/lefthook-win.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion .npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arkweid/lefthook",
"version": "0.3.1",
"version": "0.3.2",
"description": "Simple git hooks manager",
"main": "index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func executeCommand(hooksGroup, commandName string, wg *sync.WaitGroup) {

if strings.Contains(runner, subStagedFiles) {
files, _ = context.StagedFiles()
} else if strings.Contains(runner, subFiles) {
} else if strings.Contains(runner, subFiles) || getCommandFiles(hooksGroup, commandName) != "" {
files, _ = context.ExecGitCommand(getCommandFiles(hooksGroup, commandName))
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

const (
version string = "0.3.1"
version string = "0.3.2"
)

// versionCmd represents the version command
Expand Down

0 comments on commit cde2a79

Please sign in to comment.