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.
- {git_env-0.1.0 → git_env-0.2.0}/PKG-INFO +7 -9
- {git_env-0.1.0 → git_env-0.2.0}/README.md +6 -8
- {git_env-0.1.0 → git_env-0.2.0}/pyproject.toml +1 -1
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/config.py +1 -1
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/__init__.py +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/cli.py +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/completions/_git-env +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/completions/git-env.bash +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/completions/git-env.fish +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/discovery.py +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/output.py +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/repo.py +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/shell_completions.py +0 -0
- {git_env-0.1.0 → git_env-0.2.0}/src/git_env/sync.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: git-env
|
|
3
|
-
Version: 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
|
|
31
|
-
git worktree add ~/worktrees/
|
|
32
|
-
cd ~/worktrees/
|
|
33
|
-
git env sync
|
|
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
|
-
|
|
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
|
|
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
|
|
21
|
-
git worktree add ~/worktrees/
|
|
22
|
-
cd ~/worktrees/
|
|
23
|
-
git env sync
|
|
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
|
-
|
|
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
|
|
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
|
```
|
|
@@ -9,7 +9,7 @@ import subprocess
|
|
|
9
9
|
from dataclasses import dataclass
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
|
|
12
|
-
DEFAULT_PATTERNS = (".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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|