Re: show refs points to a commit
- From
Vincent van Ravesteijn <vfr@lyx.org>
- Date
- Jun 8, 2012, 19:47 UTC
- Message-ID
- <4FD256CC.5010801@lyx.org>
- In-Reply-To
- <CAN0XMO+G6K0FZgu35OuuqGEp322vLpakXHXBTPpUQmoex68srA@mail.gmail.com>
Op 8-6-2012 21:37, Ralf Thielow schreef:
Show 11 quoted lines
> 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