Update all git repositories below a given directory
Find a file
Thorsten Schubert d40ac359d1
All checks were successful
/ build (push) Successful in 26s
Add systemd service detection
2024-05-01 11:23:33 +02:00
.forgejo/workflows Migrate from woodpecker CI to act runner 2024-04-19 02:09:13 +02:00
internal Be less dramatic on repositories with no remotes 2024-04-30 04:26:19 +02:00
.gitignore Initial commit 2023-10-14 11:12:39 +02:00
CHANGELOG Add systemd service detection 2024-05-01 11:23:33 +02:00
go.mod Add systemd service detection 2024-05-01 11:23:33 +02:00
go.sum Add systemd service detection 2024-05-01 11:23:33 +02:00
justfile Add systemd service detection 2024-05-01 11:23:33 +02:00
LICENSE Add LICENSE 2023-12-06 14:24:08 +01:00
main.go Add systemd service detection 2024-05-01 11:23:33 +02:00
README.md Allow to force update diverged history 2023-11-22 12:59:33 +01:00
update-repos@.service Add systemd service detection 2024-05-01 11:23:33 +02:00
update-repos@.timer Add systemd service detection 2024-05-01 11:23:33 +02:00

update-repos

Update all repositories under a given directory up to a specified depth.

Usage: update-repos [options] [<repo-dir>]
  -alive-check
	    Check if remote is alive, don't update or alter any state
  -atomic-fetch
	    Use an atomic transaction to update local refs
  -backoff-strategy value
	    back-off strategy for retries (none, linear, fibonacci, exponential) (default linear)
  -force
	    force update on diverging history
  -initial-delay duration
	    initial delay for retries (default 500ms)
  -log-level string
	    set log level (debug, info, warn, error, fatal, panic) (default "info")
  -max-depth uint
	    maximum search depth for git repositories (default 1)
  -max-jobs uint
	    maximum number of parallel jobs (default 32)
  -max-retries uint
	    maximum number of retries on failure (default 5)
  -v	be verbose
  -verbose
	    be verbose
  -version
	    program version