Merge branch 'jc/merge-tag-object' into maint
commit499231d9f157d0987d8bdad258ce4cfd9f4c3d1f
authorJunio C Hamano <gitster@pobox.com>
Wed, 24 Apr 2013 23:14:06 +0000 (24 16:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Apr 2013 23:14:06 +0000 (24 16:14 -0700)
tree01926d529ede0e2d5285b8128aa3aaa80c43aa92
parent7612e61e33981f48f212f6aefe3550ac724d6208
parenta38d3d76b6d1c70b566633e1629aa3b0e856810e
Merge branch 'jc/merge-tag-object' into maint

"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.  Make 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