| 248 | } |
| 249 | |
| 250 | void 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 | |
| 271 | static void show_parents(struct commit *commit, int abbrev, FILE *file) |
| 272 | { |
no test coverage detected