From: Junio C Hamano Date: Fri, 14 Oct 2011 02:03:19 +0000 (-0700) Subject: Merge branch 'nd/maint-autofix-tag-in-head' X-Git-Tag: v1.7.8-rc0~88 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0fd8cb3fec7abb36505a150fe5cfa9b1d8b85496;p=git.git Merge branch 'nd/maint-autofix-tag-in-head' * nd/maint-autofix-tag-in-head: Accept tags in HEAD or MERGE_HEAD merge: remove global variable head[] merge: use return value of resolve_ref() to determine if HEAD is invalid merge: keep stash[] a local variable Conflicts: builtin/merge.c --- 0fd8cb3fec7abb36505a150fe5cfa9b1d8b85496 diff --cc builtin/merge.c index ee5697437,9567d60ba..7d593097d --- a/builtin/merge.c +++ b/builtin/merge.c @@@ -911,8 -905,8 +913,8 @@@ static int finish_automerge(struct comm strbuf_addch(&merge_msg, '\n'); run_prepare_commit_msg(); commit_tree(merge_msg.buf, result_tree, parents, result_commit, NULL); - strbuf_addf(&buf, "Merge made by %s.", wt_strategy); + strbuf_addf(&buf, "Merge made by the '%s' strategy.", wt_strategy); - finish(result_commit, buf.buf); + finish(head, result_commit, buf.buf); strbuf_release(&buf); drop_save(); return 0;