Commit 4e8e593
Matthew John Cheetham
Make GPG Pass store path configurable by git config (#1698)
I found this change beneficial when using conditional git configuration
includes for multiple git identities and `pass` password stores. It lets
me transparently select appropriate password store without need to set
its path explicitly by environment variable.
For example:
> ~/.config/git/config:
```
[user]
name = John Doe
email = jdoe@gmail.com
[credential]
credentialStore = gpg
helper = /usr/local/bin/git-credential-manager
gpgPassStorePath = /home/jdoe/.password-store
[includeIf "gitdir:~/Work/"]
path = config.work
```
> ~/.config/git/config.work:
```
[user]
name = John Doe (Umbrella Corp.)
email = jdoe@umbrella.com
[credential]
gpgPassStorePath = /home/jdoe/.password-store.umbrella
```3 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
636 | 654 | | |
637 | 655 | | |
638 | 656 | | |
| |||
1042 | 1060 | | |
1043 | 1061 | | |
1044 | 1062 | | |
| 1063 | + | |
1045 | 1064 | | |
1046 | 1065 | | |
1047 | 1066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| |||
0 commit comments