git-env 0.1.0__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: git-env
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Sync environment files across linked git worktrees
5
5
  Author: Alex Ward
6
6
  Author-email: Alex Ward <alxwrd@googlemail.com>
@@ -27,19 +27,18 @@ Copies untracked env files to your worktrees.
27
27
  ## Example
28
28
 
29
29
  ```sh
30
- cd ~/repos/myproject # primary worktree, has .env
31
- git worktree add ~/worktrees/myproject-feature # create a linked worktree
32
- cd ~/worktrees/myproject-feature
33
- git env sync # copies .env from the primary
30
+ cd ~/repos/myproject # primary worktree, has .env
31
+ git worktree add ~/worktrees/my-feature # create a linked worktree
32
+ cd ~/worktrees/my-feature
33
+ git env sync # copies .env from the primary
34
34
  ```
35
35
 
36
36
  ```plain
37
37
  $ git env sync
38
38
 
39
39
  copied .env
40
- copied .env.local
41
40
 
42
- 2 files synced.
41
+ 1 file synced.
43
42
  ```
44
43
 
45
44
  Run it again later to pick up any changes made in the primary. By default,
@@ -124,7 +123,7 @@ precedence (system → global → local → worktree):
124
123
 
125
124
  | Key | Type | Default | Meaning |
126
125
  |---|---|---|---|
127
- | `env.sync.patterns` | multi-value | `.env`, `.env.*` | Globs to sync. Multi-value, so additional `git config --add` calls append rather than replace. |
126
+ | `env.sync.patterns` | multi-value | `.env` | Globs to sync. Multi-value, so additional `git config --add` calls append rather than replace. |
128
127
  | `env.sync.exclude` | multi-value | `.env.example`, `.env.sample`, `.env.template` | Patterns never synced, even if they match `patterns` (typically committed templates). |
129
128
  | `env.sync.followSymlinks` | bool | `false` | Follow symlinked env files instead of skipping them. |
130
129
  | `env.sync.maxFileSize` | int (bytes) | `1048576` | Files larger than this are skipped with a warning. |
@@ -148,7 +147,6 @@ without everyone running `git config`. Same keys as above, minus the
148
147
 
149
148
  ```
150
149
  patterns=.env
151
- patterns=.env.*
152
150
  exclude=.env.example
153
151
  followSymlinks=false
154
152
  ```
@@ -17,19 +17,18 @@ Copies untracked env files to your worktrees.
17
17
  ## Example
18
18
 
19
19
  ```sh
20
- cd ~/repos/myproject # primary worktree, has .env
21
- git worktree add ~/worktrees/myproject-feature # create a linked worktree
22
- cd ~/worktrees/myproject-feature
23
- git env sync # copies .env from the primary
20
+ cd ~/repos/myproject # primary worktree, has .env
21
+ git worktree add ~/worktrees/my-feature # create a linked worktree
22
+ cd ~/worktrees/my-feature
23
+ git env sync # copies .env from the primary
24
24
  ```
25
25
 
26
26
  ```plain
27
27
  $ git env sync
28
28
 
29
29
  copied .env
30
- copied .env.local
31
30
 
32
- 2 files synced.
31
+ 1 file synced.
33
32
  ```
34
33
 
35
34
  Run it again later to pick up any changes made in the primary. By default,
@@ -114,7 +113,7 @@ precedence (system → global → local → worktree):
114
113
 
115
114
  | Key | Type | Default | Meaning |
116
115
  |---|---|---|---|
117
- | `env.sync.patterns` | multi-value | `.env`, `.env.*` | Globs to sync. Multi-value, so additional `git config --add` calls append rather than replace. |
116
+ | `env.sync.patterns` | multi-value | `.env` | Globs to sync. Multi-value, so additional `git config --add` calls append rather than replace. |
118
117
  | `env.sync.exclude` | multi-value | `.env.example`, `.env.sample`, `.env.template` | Patterns never synced, even if they match `patterns` (typically committed templates). |
119
118
  | `env.sync.followSymlinks` | bool | `false` | Follow symlinked env files instead of skipping them. |
120
119
  | `env.sync.maxFileSize` | int (bytes) | `1048576` | Files larger than this are skipped with a warning. |
@@ -138,7 +137,6 @@ without everyone running `git config`. Same keys as above, minus the
138
137
 
139
138
  ```
140
139
  patterns=.env
141
- patterns=.env.*
142
140
  exclude=.env.example
143
141
  followSymlinks=false
144
142
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "git-env"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  description = "Sync environment files across linked git worktrees"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -9,7 +9,7 @@ import subprocess
9
9
  from dataclasses import dataclass
10
10
  from pathlib import Path
11
11
 
12
- DEFAULT_PATTERNS = (".env", ".env.*")
12
+ DEFAULT_PATTERNS = (".env",)
13
13
  DEFAULT_EXCLUDE = (".env.example", ".env.sample", ".env.template")
14
14
  DEFAULT_FOLLOW_SYMLINKS = False
15
15
  DEFAULT_MAX_FILE_SIZE = 1048576
File without changes
File without changes
File without changes
File without changes
File without changes