mirror of
https://github.com/gopasspw/gopass.git
synced 2025-12-08 19:24:54 +00:00
This commit adds yet another config handler for gopass. It is based on the format used by git itself. This has the potential to address a lot of long standing issues, but it also causes a lot of changes to how we handle configuration, so bugs are inevitable. Fixes #1567 Fixes #1764 Fixes #1819 Fixes #1878 Fixes #2387 Fixes #2418 RELEASE_NOTES=[BREAKING] New config format based on git config. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> Co-authored-by: Yolan Romailler <AnomalRoil@users.noreply.github.com> address comments Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
16 lines
665 B
Go
16 lines
665 B
Go
package gitconfig
|
|
|
|
var (
|
|
// SystemConfig is the location of the (optional) system-wide config defaults file.
|
|
systemConfig = "/etc/gitconfig" // /etc/gopass/config
|
|
// GlobalConfig is the location of the (optional) global (i.e. user-wide) config file.
|
|
globalConfig = ".gitconfig"
|
|
// LocalConfig is the name of the local (per-workdir) configuration.
|
|
localConfig = "config"
|
|
// WorktreeConfig is the name of the local worktree configuration. Can be used to override
|
|
// a committed local config.
|
|
worktreeConfig = "config.worktree"
|
|
// EnvPrefix is the prefix for the environment variables controlling and overriding config variables.
|
|
envPrefix = "GIT_CONFIG"
|
|
)
|