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

Function assign_variant

rerere.c:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static void assign_variant(struct rerere_id *id)
81{
82 int variant;
83 struct rerere_dir *rr_dir = id->collection;
84
85 variant = id->variant;
86 if (variant < 0) {
87 for (variant = 0; variant < rr_dir->status_nr; variant++)
88 if (!rr_dir->status[variant])
89 break;
90 }
91 fit_variant(rr_dir, variant);
92 id->variant = variant;
93}
94
95const char *rerere_path(struct strbuf *buf, const struct rerere_id *id, const char *file)
96{

Callers 1

do_rerere_one_pathFunction · 0.85

Calls 1

fit_variantFunction · 0.85

Tested by

no test coverage detected