sg: add an auto update mechanism
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: jhchabran
Introduces a new subcommand sg update auto enable
to turn on automatic updates. It's turned off by default.
When turned on, sg
will first check in its local copy of origin/main
if there are new commits. If yes, it will execute sg update
and restart itself with the same arguments, transparently running the given arguments to the freshly updated sg
and requiring no action from the user.
Fixes #29619 (closed)
main
instead of origin/main
sg
with my changessg update auto enable
sg ci preview
sg ci preview
See the gif in the above description.
Push commits to the source branch or add previously merged commits to review them.