git/list[1] front-page[2] threads[3] people[4] search[5] about
 

"git maintenance" - detect status?

From
Tao Klerks <tao@klerks.biz>
Date
Feb 14, 2023, 10:50 UTC
Message-ID
<CAPMMpohJ1gajTYOA9ZJjq=hASA9ry9fKP02TYH2dDF+VBeek8w@mail.gmail.com>
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

Next: Derrick Stolee
Message 1 of 2 in “"git maintenance" - detect status?”
  1. Tao KlerksFeb 14, 2023
  2. Derrick StoleeFeb 14, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.