Skip to content

Commit 5e5cad7

Browse files
committed
1.12.2: support override LEFTHOOK_CONFIG env
1 parent 9f0534f commit 5e5cad7

File tree

22 files changed

+37
-30
lines changed

22 files changed

+37
-30
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change log
22

3+
## 1.12.2 (2025-07-11)
4+
5+
- feat: add implicit template lefthook_job_name ([#1074](https://github.com/evilmartians/lefthook/pull/1074))
6+
- docs: restructure documentation ([#1075](https://github.com/evilmartians/lefthook/pull/1075)) by [@mrexox](https://github.com/mrexox)
7+
- feat: allow overriding config path using LEFTHOOK_CONFIG env ([#1072](https://github.com/evilmartians/lefthook/pull/1072)) by [@TECHNOFAB11](https://github.com/TECHNOFAB11)
8+
39
## 1.12.1 (2025-07-09)
410

511
- feat: add check-install command ([#1064](https://github.com/evilmartians/lefthook/pull/1064)) by [@mrexox](https://github.com/mrexox)

docs/mdbook/configuration/run.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You can use files templates that will be substituted with the appropriate files
1111
- `{cmd}` - shorthand for the command from `lefthook.yml`.
1212
- `{0}` - shorthand for the single space-joint string of git hook arguments.
1313
- `{N}` - shorthand for the N-th git hook argument.
14+
- `{lefthook_job_name}` - current job/command/script name
1415

1516
> **Note:** Command line length has a limit on every system. If your list of files is quite long, lefthook splits your files list to fit in the limit and runs few commands sequentially.
1617

docs/mdbook/installation/swift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can find the Swift wrapper plugin [here](https://github.com/csjones/lefthook
55
Utilize lefthook in your Swift project using Swift Package Manager:
66

77
```swift
8-
.package(url: "https://github.com/csjones/lefthook-plugin.git", exact: "1.12.1"),
8+
.package(url: "https://github.com/csjones/lefthook-plugin.git", exact: "1.12.2"),
99
```
1010

1111
Or, with [mint](https://github.com/yonaskolb/Mint):

internal/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strconv"
99
)
1010

11-
const version = "1.12.1"
11+
const version = "1.12.2"
1212

1313
var (
1414
// Is set via -X github.com/evilmartians/lefthook/internal/version.commit={commit}.

packaging/aur/lefthook-bin/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pkgname=lefthook-bin
44
pkgdesc="Git hooks manager"
5-
pkgver=1.12.1
5+
pkgver=1.12.2
66
pkgrel=1
77
arch=('x86_64' 'aarch64')
88
url="https://github.com/evilmartians/lefthook"

packaging/aur/lefthook/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pkgname=lefthook
44
pkgdesc="Git hooks manager"
5-
pkgver=1.12.1
5+
pkgver=1.12.2
66
pkgrel=1
77
arch=('x86_64' 'aarch64')
88
url="https://github.com/evilmartians/lefthook"

packaging/npm-bundled/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@evilmartians/lefthook",
3-
"version": "1.12.1",
3+
"version": "1.12.2",
44
"description": "Simple git hooks manager",
55
"main": "bin/index.js",
66
"files": [

packaging/npm-installer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@evilmartians/lefthook-installer",
3-
"version": "1.12.1",
3+
"version": "1.12.2",
44
"description": "Simple git hooks manager",
55
"main": "bin/index.js",
66
"files": [

packaging/npm/lefthook-darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lefthook-darwin-arm64",
3-
"version": "1.12.1",
3+
"version": "1.12.2",
44
"description": "The macOS ARM 64-bit binary for lefthook, git hooks manager.",
55
"preferUnplugged": false,
66
"repository": {

packaging/npm/lefthook-darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lefthook-darwin-x64",
3-
"version": "1.12.1",
3+
"version": "1.12.2",
44
"description": "The macOS 64-bit binary for lefthook, git hooks manager.",
55
"preferUnplugged": false,
66
"repository": {

0 commit comments

Comments
 (0)