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

Function load_branch_decorations

log-tree.c:250–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void load_branch_decorations(void)
251{
252 if (!decoration_loaded) {
253 struct string_list decorate_refs_exclude = STRING_LIST_INIT_NODUP;
254 struct string_list decorate_refs_exclude_config = STRING_LIST_INIT_NODUP;
255 struct string_list decorate_refs_include = STRING_LIST_INIT_NODUP;
256 struct decoration_filter decoration_filter = {
257 .include_ref_pattern = &decorate_refs_include,
258 .exclude_ref_pattern = &decorate_refs_exclude,
259 .exclude_ref_config_pattern = &decorate_refs_exclude_config,
260 };
261
262 string_list_append(&decorate_refs_include, "refs/heads/");
263 load_ref_decorations(&decoration_filter, 0);
264
265 string_list_clear(&decorate_refs_exclude, 0);
266 string_list_clear(&decorate_refs_exclude_config, 0);
267 string_list_clear(&decorate_refs_include, 0);
268 }
269}
270
271static void show_parents(struct commit *commit, int abbrev, FILE *file)
272{

Callers 2

make_script_with_mergesFunction · 0.85

Calls 3

load_ref_decorationsFunction · 0.85
string_list_clearFunction · 0.85
string_list_appendFunction · 0.70

Tested by

no test coverage detected