topgrade-rs / topgrade

Upgrade all the things
GNU General Public License v3.0
1.7k stars 113 forks source link

Git support fetch only #806

Open clinta opened 1 month ago

clinta commented 1 month ago

An option to only fetch git repos instead of pulling them would be appreciated. I do not want my git working directory changed by topgrade. But a git fetch would be useful so I can instantly pull in the future.

SteveLauC commented 2 weeks ago

This looks like a reasonable feature, I think we can have a configuration entry to enable it:

[git]
# How many repos to pull at max in parallel
# max_concurrency = 5

# Additional git repositories to pull
# repos = [
#     "~/src/*/",
#     "~/.config/something"
# ]

# Don't pull the predefined git repos
# pull_predefined = false

# Arguments to pass Git when pulling Repositories
# arguments = "--rebase --autostash"

# If enabled, Topgrade only `git fetch`s the specified repositories instead of pulling them
fetch_only = false