Merge branch 'jc/merge-tag-object'
commite636241fdb23293eee0f61c355e528219bf737cf
authorJunio C Hamano <gitster@pobox.com>
Fri, 5 Apr 2013 21:14:41 +0000 (5 14:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Apr 2013 21:14:41 +0000 (5 14:14 -0700)
treeb5fdf7ca5273d6f992e6aeb818ce28b0365982a6
parentbfd70c53b38f03a4e788fb84518c09f67b7514c2
parenta38d3d76b6d1c70b566633e1629aa3b0e856810e
Merge branch 'jc/merge-tag-object'

"git merge $(git rev-parse v1.8.2)" behaved quite differently from
"git merge v1.8.2" as if v1.8.2 were written as v1.8.2^0 and did
not pay much attention to the annotated tag payload.

This makes the code notice the type of the tag object, in addition
to the dwim_ref() based classification the current code uses
(i.e. the name appears in refs/tags/) to decide when to special
case merging of tags.

* jc/merge-tag-object:
  t6200: test message for merging of an annotated tag
  t6200: use test_config/test_unconfig
  merge: a random object may not necssarily be a commit
builtin/merge.c