Update all git repositories below a given directory
Find a file
Thorsten Schubert 38dc165aa5
All checks were successful
/ build (push) Successful in 26s
Migrate from woodpecker CI to act runner
2024-04-18 20:19:33 +02:00
.forgejo/workflows Migrate from woodpecker CI to act runner 2024-04-18 20:19:33 +02:00
internal Prune normal repositories on fetch 2024-03-18 09:25:41 +01:00
.gitignore Initial commit 2023-10-14 11:12:39 +02:00
CHANGELOG Migrate from woodpecker CI to act runner 2024-04-18 20:19:33 +02:00
go.mod Migrate from woodpecker CI to act runner 2024-04-18 20:19:33 +02:00
go.sum Migrate from woodpecker CI to act runner 2024-04-18 20:19:33 +02:00
justfile Use sys/unix instead of syscall directly 2023-10-25 13:24:10 +02:00
LICENSE Add LICENSE 2023-12-06 14:24:08 +01:00
main.go Add LICENSE 2023-12-06 14:24:08 +01:00
README.md Allow to force update diverged history 2023-11-22 12:59:33 +01: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