From: Junio C Hamano Date: Sat, 05 Nov 2011 06:01:33 GMT Subject: [PATCH 03/10] merge: notice local merging of tags and keep it unwrapped Message-ID: <1320472900-6601-4-git-send-email-gitster@pobox.com> In-Reply-To: <1320472900-6601-1-git-send-email-gitster@pobox.com> Signed-off-by: Junio C Hamano --- * I notice that Peff came up with the same patch independently. builtin/merge.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/builtin/merge.c b/builtin/merge.c index dffd5ec..6a44b6d 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -441,6 +441,11 @@ static void merge_name(const char *remote, struct strbuf *msg) sha1_to_hex(branch_head), remote); goto cleanup; } + if (!prefixcmp(found_ref, "refs/tags/")) { + strbuf_addf(msg, "%s\t\ttag '%s' of .\n", + sha1_to_hex(branch_head), remote); + goto cleanup; + } if (!prefixcmp(found_ref, "refs/remotes/")) { strbuf_addf(msg, "%s\t\tremote-tracking branch '%s' of .\n", sha1_to_hex(branch_head), remote); -- 1.7.8.rc0.108.g71b5ec