From: Junio C Hamano <gitster@pobox.com>
To: Ralf Thielow <ralf.thielow@googlemail.com>
Cc: Vincent van Ravesteijn <vfr@lyx.org>, git <git@vger.kernel.org>
Subject: Re: show refs points to a commit
Date: Fri, 08 Jun 2012 13:03:03 -0700 [thread overview]
Message-ID: <7v4nqld11k.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CAN0XMO+FpCWgf96ffZ0qd7TNEmdBXicvvk23fnXBaTK_7weV-g@mail.gmail.com> (Ralf Thielow's message of "Fri, 8 Jun 2012 21:51:06 +0200")
Ralf Thielow <ralf.thielow@googlemail.com> writes:
> On Fri, Jun 8, 2012 at 9:47 PM, Vincent van Ravesteijn <vfr@lyx.org> wrote:
>> Is this what you mean ?
>>
>> $ git rev-parse master
>> f623ca1cae600e97cb0b38131fdd33e4fb669cf8
>> $ git name-rev f623ca1cae600
>> f623ca1cae600 master
>> $ git name-rev --refs=refs/heads/* f344333cd
>> f344333cd master~10
>>
>
> I just want to know what's the refs where
> the *tip* points to my specified commit.
"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.
next prev parent reply other threads:[~2012-06-08 20:03 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 [this message]
2012-06-08 20:10 ` Ralf Thielow
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=7v4nqld11k.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=ralf.thielow@googlemail.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.
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).