git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "git maintenance" - detect status?
@ 2023-02-14 10:50 Tao Klerks
  2023-02-14 17:07 ` Derrick Stolee
  0 siblings, 1 reply; 2+ messages in thread
From: Tao Klerks @ 2023-02-14 10:50 UTC (permalink / raw)
  To: git

Hi folks,

I'm trying to understand how to expose "git maintenance" state to
users, and suspect I'm missing something:

I see in the doc (https://git-scm.com/docs/git-maintenance) that "git
maintenance start" does three things:
 * sets maintenance.auto = false in the current repo
 * registers the current repo into a --global maintenance.repo entry
 * starts the global schedule

Also see there that "undoing" this requires three separate steps:
 * "git maintenance stop" for the schedule
 * "git maintenance unregister" for the maintenance.repo entry
 * "git config --unset maintenance.auto to resume legacy maintenance

However, I can't figure out how to test the current state of
scheduling, from within git:
 * There's no config value representing "scheduling is enabled" (as
far as I can tell)
 * There's no "git maintenance" subcommand for "check on the
scheduling tasks" (as far as I can tell)

In principle I guess it's possible to check for the Task Scheduler
entries and their status in Windows, for example, but that sounds...
like relying on implementation details.

Is there any correct cross-platform way to detect the scheduling state?

Thanks,
Tao

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-14 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-14 10:50 "git maintenance" - detect status? Tao Klerks
2023-02-14 17:07 ` Derrick Stolee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).