[PATCH 0/4] Make "git name-rev $(git rev-parse v1.8.3)" work
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 7, 2013, 22:33 UTC
- Message-ID
- <1373236424-25617-1-git-send-email-gitster@pobox.com>
So here is a set of small preparatory steps to help the other topic to allow "git describe -contains v1.8.3" omit trailing "^0" from its output. We do not want to prevent people from allowing "name-rev" to convert object names other than commit-ishes.
The series should apply on 96ffd4ca (Merge branch 'nk/name-rev-abbreviated-refs', 2013-06-30).
Junio C Hamano (4): name-ref: factor out name shortening logic from name_ref() name-rev: allow converting the exact object name at the tip of a ref describe: use argv-array describe/name-rev: tell name-rev to peel the incoming object to commit first
builtin/describe.c | 32 ++++++++------- builtin/name-rev.c | 113 ++++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 112 insertions(+), 33 deletions(-)
-- 1.8.3.2-853-ga8cbcc9