summaryrefslogtreecommitdiff
path: root/fmt-merge-msg.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-10-23 13:59:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-23 15:57:39 (GMT)
commit2217230d53ab6d3c6b61fc996a8394cbf8c7fce9 (patch)
tree202f9f15646fafbbebc8fe709dc82d5e6b8b7bef /fmt-merge-msg.c
parent69986e19ffcfb9af674ae5180689ab7bbf92ed28 (diff)
downloadgit-2217230d53ab6d3c6b61fc996a8394cbf8c7fce9.zip
git-2217230d53ab6d3c6b61fc996a8394cbf8c7fce9.tar.gz
git-2217230d53ab6d3c6b61fc996a8394cbf8c7fce9.tar.bz2
fmt-merge-msg: also suppress "into main" by default
In preparation for changing the default branch name to `main`, let's skip the suffix "into main" in merge commit messages, the same way that "into master" has been skipped by default. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fmt-merge-msg.c')
-rw-r--r--fmt-merge-msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fmt-merge-msg.c b/fmt-merge-msg.c
index bd22e1e..9a664a4 100644
--- a/fmt-merge-msg.c
+++ b/fmt-merge-msg.c
@@ -626,8 +626,10 @@ int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
void *current_branch_to_free;
struct merge_parents merge_parents;
- if (!suppress_dest_pattern_seen)
+ if (!suppress_dest_pattern_seen) {
+ string_list_append(&suppress_dest_patterns, "main");
string_list_append(&suppress_dest_patterns, "master");
+ }
memset(&merge_parents, 0, sizeof(merge_parents));