Compare commits

..

4 commits
0.2.0 ... main

Author SHA1 Message Date
19591ad8e1 Update README
All checks were successful
/ check (push) Successful in 2m0s
2025-09-05 10:04:35 +01:00
6323576826 Update README
All checks were successful
/ check (push) Successful in 25s
2025-09-04 21:35:09 +01:00
8175f54ddd Update CHANGELOG
All checks were successful
/ check (push) Successful in 4s
2025-08-05 01:40:14 +01:00
b162228efd go mod tidy
All checks were successful
/ check (push) Successful in 5s
2025-08-05 01:36:15 +01:00
4 changed files with 35 additions and 3 deletions

View file

@ -6,17 +6,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
## [Unreleased]
Nothing yet.
## [0.2.0] (2025-08-05)
### Added
- Set a default `depth` in config.yaml and remove the hard-coded value.
- Ignore repository paths using `ignores` in config.yaml.
## [0.1.0]
## Changed
- Update module paths to my Forgejo instance (`code.oliverdavies.uk`).
## [0.1.0] (2025-07-31)
### Added
- Load a list of directories from a configuration file (`~/.config/git-repo-updater/config.yaml`).
- Configure the depth to search in each directory by appending it to the path - e.g. (`~/Code:3`).
[unreleased]: https://code.oliverdavies.uk/opdavies/git-repo-updater/compare/0.2.0...main
[0.2.0]: https://code.oliverdavies.uk/opdavies/git-repo-updater/compare/0.1.0...0.2.0
[0.1.0]: https://code.oliverdavies.uk/opdavies/git-repo-updater/releases/tag/0.1.0
[unreleased]: https://code.oliverdavies.uk/opdavies/git-repo-updater/compare/0.1.0...main

View file

@ -1 +1,23 @@
# git-repo-updater
`git-repo-updater` is an CLI program that finds and updates Git repositories in specified directories.
## Configuration
`git-repo-updater` is configurable using a configuration file at `~/.config/git-repo-updater/config.yaml`.
For example:
```yaml
# The number of levels to search.
depth: 3
# A list of directories to search in.
directories:
- ~/Code/code.oliverdavies.uk
- ~/Code/github.com
# A list of repositories to ignore and not update.
ignored:
- ~/Code/github.com/nixos/nixpkgs
```

2
go.mod
View file

@ -2,4 +2,4 @@ module code.oliverdavies.uk/opdavies/git-repo-updater
go 1.24.5
require gopkg.in/yaml.v3 v3.0.1 // indirect
require gopkg.in/yaml.v3 v3.0.1

1
go.sum
View file

@ -1,3 +1,4 @@
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=