diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-13 23:07:46 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-13 23:07:46 +0300 |
| commit | 3a5f62fcba39032279a0fa44ef72bfae38656677 (patch) | |
| tree | 26bf0a887b618c59df876755124c6e0d0630320c /internal/config | |
| parent | 5feaed014f83e83e8accb1a1ff43930cb1fb5e5d (diff) | |
fix: change default config path to ~/.config/gitsyncer/config.json
- Add .json extension to default config path for clarity
- Update all documentation and help text
- Update config search paths to include the new default
The new default path is ~/.config/gitsyncer/config.json
(previously ~/.config/gitsyncer/config)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index a141c81..86c474f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -34,8 +34,8 @@ func Load(path string) (*Config, error) { if err != nil { return nil, fmt.Errorf("failed to get home directory: %w", err) } - // Use XDG config directory - path = filepath.Join(home, ".config", "gitsyncer", "config") + // Use XDG config directory with .json extension + path = filepath.Join(home, ".config", "gitsyncer", "config.json") } else if len(path) >= 2 && path[:2] == "~/" { // Expand home directory if needed home, err := os.UserHomeDir() |
