all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Mathias Megyei <mathias@mnet-mail.de>
Cc: emacs-devel@gnu.org
Subject: Re: git log question
Date: Thu, 30 Nov 2017 13:02:26 +0100	[thread overview]
Message-ID: <87wp28c6ul.fsf@gmx.net> (raw)
In-Reply-To: <920d2cc0-a9b8-b740-1b4a-51403a790f90@mnet-mail.de> (Mathias Megyei's message of "Thu, 30 Nov 2017 12:30:07 +0100")

On Thu, 30 Nov 2017 12:30:07 +0100 Mathias Megyei <mathias@mnet-mail.de> wrote:

> On 11/30/2017 11:00 AM, Stephen Berman wrote:
>> I thought if I call `git log <commit> -1' on the current branch, it will
>> only show <commit> if it is in the current branch,
>
> When you want to know whether <commit> (originally committed to emacs-26) has
> been merged into master or any other local branch then you can use
>   git branch --contains <commit>
> In order to list remote tracking branches please add option '-r'
>   git branch -r --contains <commit>

Thanks, but that doesn't answer my question.  I want to call `git
<command> <commit>' on a branch and see the commit only if it is indeed
on that branch, not on some other branch in the repository.  From your
reply, it appears that git does not have such a command, but I have to
first call `git branch --contains <commit>' and, if it shows the branch
I want, then call `git log <commit> -1'.  If so, fine, though a bit
disappointing it's not more straightforward.

Steve Berman



  reply	other threads:[~2017-11-30 12:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-30 10:00 git log question Stephen Berman
2017-11-30 11:30 ` Mathias Megyei
2017-11-30 12:02   ` Stephen Berman [this message]
2017-11-30 13:15     ` Yuri Khan
2017-11-30 14:19       ` Stephen Berman
2017-11-30 14:59         ` Noam Postavsky
2017-11-30 15:05         ` Yuri Khan
2017-11-30 15:05         ` Andreas Schwab
2017-11-30 15:21           ` Kaushal Modi
2017-11-30 15:25             ` Andreas Schwab
2017-11-30 15:35             ` Noam Postavsky
2017-11-30 17:46             ` Clément Pit-Claudel
2017-11-30 17:59               ` Kaushal Modi
2017-11-30 17:06         ` Davis Herring
2017-11-30 19:11           ` Stephen Berman
2017-11-30 14:28 ` Herring, Davis
2017-11-30 14:37   ` Stephen Berman
2017-11-30 15:57 ` Eli Zaretskii
2017-11-30 19:10   ` Stephen Berman

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=87wp28c6ul.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=mathias@mnet-mail.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.