git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git name-rev not accepting abbreviated SHA with --stdin
@ 2015-06-24  3:29 Sitaram Chamarty
  2015-06-25  0:11 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Sitaram Chamarty @ 2015-06-24  3:29 UTC (permalink / raw)
  To: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-04  2:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-24  3:29 git name-rev not accepting abbreviated SHA with --stdin Sitaram Chamarty
2015-06-25  0:11 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).