* See if dest_branch matches with any glob pattern on the * suppress_dest_patterns list. * * We may want to also allow negative matches e.g. ":!glob" like we do * for pathspec, but for now, let's keep it simple and stupid. */
| 439 | * for pathspec, but for now, let's keep it simple and stupid. |
| 440 | */ |
| 441 | static int dest_suppressed(const char *dest_branch) |
| 442 | { |
| 443 | struct string_list_item *item; |
| 444 | |
| 445 | for_each_string_list_item(item, &suppress_dest_patterns) { |
| 446 | if (!wildmatch(item->string, dest_branch, WM_PATHNAME)) |
| 447 | return 1; |
| 448 | } |
| 449 | return 0; |
| 450 | } |
| 451 | |
| 452 | static void fmt_merge_msg_title(struct strbuf *out, |
| 453 | const char *current_branch) |
no test coverage detected