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

Function schtasks_remove_task

builtin/gc.c:2624–2638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2622}
2623
2624static int schtasks_remove_task(enum schedule_priority schedule)
2625{
2626 char *cmd;
2627 struct child_process child = CHILD_PROCESS_INIT;
2628 const char *frequency = get_frequency(schedule);
2629 char *name = schtasks_task_name(frequency);
2630
2631 get_schedule_cmd("schtasks", NULL, &cmd);
2632 strvec_split(&child.args, cmd);
2633 strvec_pushl(&child.args, "/delete", "/tn", name, "/f", NULL);
2634 free(name);
2635 free(cmd);
2636
2637 return run_command(&child);
2638}
2639
2640static int schtasks_remove_tasks(void)
2641{

Callers 1

schtasks_remove_tasksFunction · 0.85

Calls 6

get_frequencyFunction · 0.85
schtasks_task_nameFunction · 0.85
get_schedule_cmdFunction · 0.85
strvec_splitFunction · 0.85
strvec_pushlFunction · 0.85
run_commandFunction · 0.85

Tested by

no test coverage detected