From: Vincent van Ravesteijn <vfr@lyx.org>
To: Ralf Thielow <ralf.thielow@googlemail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: show refs points to a commit
Date: Fri, 08 Jun 2012 21:47:24 +0200 [thread overview]
Message-ID: <4FD256CC.5010801@lyx.org> (raw)
In-Reply-To: <CAN0XMO+G6K0FZgu35OuuqGEp322vLpakXHXBTPpUQmoex68srA@mail.gmail.com>
Op 8-6-2012 21:37, Ralf Thielow schreef:
> After playing around with submodules, I haven't
> found a builtin way to show refs pointing to a
> specified commit without using UNIX pipes.
>
> Especially when you working with submodules, it
> would be very helpful to know which refs
> points to this commit in order to switch from
> "detached HEAD" to the branch you can (maybe)
> work with.
>
> Or did I miss something?
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
Vincent
next prev parent reply other threads:[~2012-06-08 19:47 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 [this message]
2012-06-08 19:51 ` Ralf Thielow
2012-06-08 20:03 ` Junio C Hamano
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
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=4FD256CC.5010801@lyx.org \
--to=vfr@lyx.org \
--cc=git@vger.kernel.org \
--cc=ralf.thielow@googlemail.com \
/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).