MCPcopy Create free account
hub / github.com/git/git / toggle_maintenance

Function toggle_maintenance

scalar.c:229–235  ·  view source on GitHub ↗

* Enable or disable the maintenance mode for the current repository: * * * If 'enable' is nonzero, run 'git maintenance start'. * * If 'enable' is zero, run 'git maintenance unregister --force'. */

Source from the content-addressed store, hash-verified

227 * * If 'enable' is zero, run 'git maintenance unregister --force'.
228 */
229static int toggle_maintenance(int enable)
230{
231 return run_git("maintenance",
232 enable ? "start" : "unregister",
233 enable ? NULL : "--force",
234 NULL);
235}
236
237static int add_or_remove_enlistment(int add)
238{

Callers 3

register_dirFunction · 0.85
unregister_dirFunction · 0.85
cmd_reconfigureFunction · 0.85

Calls 1

run_gitFunction · 0.85

Tested by

no test coverage detected