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

Function dest_suppressed

fmt-merge-msg.c:441–450  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

439 * for pathspec, but for now, let's keep it simple and stupid.
440 */
441static 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
452static void fmt_merge_msg_title(struct strbuf *out,
453 const char *current_branch)

Callers 1

fmt_merge_msg_titleFunction · 0.85

Calls 1

wildmatchFunction · 0.85

Tested by

no test coverage detected