git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Ralf Thielow <ralf.thielow@googlemail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Vincent van Ravesteijn <vfr@lyx.org>, git <git@vger.kernel.org>
Subject: Re: show refs points to a commit
Date: Fri, 8 Jun 2012 22:10:29 +0200	[thread overview]
Message-ID: <CAN0XMOK=KwHSc0oZZJYBSmqYLG31W0vcA=Qt929uCf7PHsuqiw@mail.gmail.com> (raw)
In-Reply-To: <7v4nqld11k.fsf@alter.siamese.dyndns.org>

> "git for-each-ref" gives the mapping from the tip of your refs to
> object names.  We do not keep and give reverse mapping but there
> should be enough information in for-each-refs output to get the
> information yourself, I think.

But you need to grep if you have a big list, don't you?
Michael H. points me to: "git log -1 --decorate"
which works very well to me.

Thanks

      reply	other threads:[~2012-06-08 20:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08 19:37 show refs points to a commit Ralf Thielow
2012-06-08 19:47 ` Vincent van Ravesteijn
2012-06-08 19:51   ` Ralf Thielow
2012-06-08 20:03     ` Junio C Hamano
2012-06-08 20:10       ` Ralf Thielow [this message]

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN0XMOK=KwHSc0oZZJYBSmqYLG31W0vcA=Qt929uCf7PHsuqiw@mail.gmail.com' \
    --to=ralf.thielow@googlemail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=vfr@lyx.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).