From: Sitaram Chamarty <sitaramc@gmail.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: git name-rev not accepting abbreviated SHA with --stdin
Date: Wed, 24 Jun 2015 08:59:09 +0530 [thread overview]
Message-ID: <558A2405.2090709@gmail.com> (raw)
Hi all,
"git name-rev" does not accept abbreviated SHAs if --stdin is used,
though it works when the SHA is given directly on the command line:
$ git version
git version 2.4.3
$ git name-rev --tags d73f544
d73f544 tags/v3.6.3~29
$ git name-rev --tags --stdin <<< d73f544
d73f544
This *is* documented, but I'm curious why this distinction is made. Is
it merely a matter of parsing or were there some other complications I
am unaware of, which forced this distinction to be made?
thanks
sitaram
next reply other threads:[~2015-06-24 3:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 3:29 Sitaram Chamarty [this message]
2015-06-25 0:11 ` git name-rev not accepting abbreviated SHA with --stdin Junio C Hamano
2015-06-25 2:01 ` Sitaram Chamarty
2015-07-03 17:36 ` Junio C Hamano
2015-07-04 1:26 ` Sitaram Chamarty
2015-07-04 2:03 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=558A2405.2090709@gmail.com \
--to=sitaramc@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.