MCPcopy Index your code
hub / github.com/git/git / GIT_PATH_FUNC

Function GIT_PATH_FUNC

bisect.c:484–503  ·  view source on GitHub ↗
(git_path_bisect_ancestors_ok, "BISECT_ANCESTORS_OK")

Source from the content-addressed store, hash-verified

482}
483
484static GIT_PATH_FUNC(git_path_bisect_names, "BISECT_NAMES")
485static GIT_PATH_FUNC(git_path_bisect_ancestors_ok, "BISECT_ANCESTORS_OK")
486static GIT_PATH_FUNC(git_path_bisect_run, "BISECT_RUN")
487static GIT_PATH_FUNC(git_path_bisect_start, "BISECT_START")
488static GIT_PATH_FUNC(git_path_bisect_log, "BISECT_LOG")
489static GIT_PATH_FUNC(git_path_bisect_terms, "BISECT_TERMS")
490static GIT_PATH_FUNC(git_path_bisect_first_parent, "BISECT_FIRST_PARENT")
491
492static void read_bisect_paths(struct strvec *array)
493{
494 struct strbuf str = STRBUF_INIT;
495 const char *filename = git_path_bisect_names();
496 FILE *fp = xfopen(filename, "r");
497
498 while (strbuf_getline_lf(&str, fp) != EOF) {
499 strbuf_trim(&str);
500 if (sq_dequote_to_strvec(str.buf, array))
501 die(_("Badly quoted content in file '%s': %s"),
502 filename, str.buf);
503 }
504
505 strbuf_release(&str);
506 fclose(fp);

Callers 2

sequencer.cFile · 0.85
bisect.cFile · 0.85

Calls 4

xfopenFunction · 0.85
strbuf_trimFunction · 0.85
sq_dequote_to_strvecFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected