Merge branch 'jc/name-rev-exact-ref'
commit3daafe9403c65b39f133f3aa4a6dbbcd372e9db1
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Jul 2013 18:24:19 +0000 (22 11:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jul 2013 18:24:19 +0000 (22 11:24 -0700)
treee965990c514eb8c415017c399d96cdc16b2913f2
parent07b83b5d98a8b7230f3ebafeb4ecf2916c011db9
parentadfc1857bdb090786fd9d22c1acec39371c76048
Merge branch 'jc/name-rev-exact-ref'

Corrects the longstanding sloppiness in the implementation of
name-rev that conflated "we take commit-ish" and "differences
between tags and commits do not matter".

* jc/name-rev-exact-ref:
  describe: fix --contains when a tag is given as input
  name-rev: differentiate between tags and commits they point at
  describe: use argv-array
  name-rev: allow converting the exact object name at the tip of a ref
  name-ref: factor out name shortening logic from name_ref()