From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: git log question Date: Thu, 30 Nov 2017 13:02:26 +0100 Message-ID: <87wp28c6ul.fsf@gmx.net> References: <87bmjkgk6h.fsf@gmx.net> <920d2cc0-a9b8-b740-1b4a-51403a790f90@mnet-mail.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512043452 15115 195.159.176.226 (30 Nov 2017 12:04:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2017 12:04:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Mathias Megyei Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 30 13:03:56 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKNZE-0002gm-3i for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 13:03:48 +0100 Original-Received: from localhost ([::1]:47568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKNZL-0006as-5m for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 07:03:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKNYH-0006ZX-TB for emacs-devel@gnu.org; Thu, 30 Nov 2017 07:02:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKNYD-0001xH-2H for emacs-devel@gnu.org; Thu, 30 Nov 2017 07:02:49 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:61149) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKNYC-0001wt-PH for emacs-devel@gnu.org; Thu, 30 Nov 2017 07:02:44 -0500 Original-Received: from rosalinde ([83.135.10.157]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lz4KW-1fFJkg1Uxs-014DUO; Thu, 30 Nov 2017 13:02:42 +0100 In-Reply-To: <920d2cc0-a9b8-b740-1b4a-51403a790f90@mnet-mail.de> (Mathias Megyei's message of "Thu, 30 Nov 2017 12:30:07 +0100") X-Provags-ID: V03:K0:3DGLv1hUcv6504+AWezKqF/1G3zPP+hqXX8uRVLExcKgzGb+xcY GPhPb45RQu+kkEbo8/rt1psyJ5Tn2TBvvE2Zv29ZJYJa4k0jq3anwLanSFys/Bu5tGDvecC VWWEhvT/+eNAaSo/CVsrHHxkT5+8POtaXtc87iaSZJlOjtpjdV86GeTPQlXBS+Q4CHNuMwE vkKANj2cwtN26gEF/PmmQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:IGnFCTzbEgM=:tKfu/d/zjIZiMGGIifKDqy bGeFmVRpE8vIBPqVhmHdhZMVFe8Jr/hH7kDoXnt4G8qSupv1jknSQFWjIP3thTzR2e8TksAlR WE3+vm8mlss9ouAeImxLc/p0hZvZpfEqVuvNDkjrh4BpszlK1AbW4Emwd3kmooveE2WzMzNkC 7ts8RIOM+M7pHkaZ7rByRsGPCFYC4Hfc6W8EPNIZpxezpRQ6uuPi61QZyUGvXL65khZmAxilu tFHeAb10jRoFjxW8MH698nyntCqzeWs/BiABOMCQ4lLDwOOkzH76ebyCx4ZmhNuK4VM2W/ZVb 1M32OWU5NPTclK7MtQDoGm+tJYalIMAr6faT2QuGzD7SVsW/qgh3yqhg98Fc5yZ638JabjGaT 7IFXzNn42VwXAhV2fFt9uFXJPttgbKz8ZepEL+ln+8l51V0CeDpainW231w2zhCXInATyg8eA mBLXXk/uOOTa32ZT2OejU4AdAxdxJzx6SEnqfa9VtYxgzrbUspiVdhGDAUtiQGbsSFo5vOlch nzUAXd864QySD0dmaMAw5jDigg1tfjJ73K76lyShsPfF6GyBtsxd1kti9ZMfauYOrGP1Lyav8 vM7RlK6Ayv64eAY50WKXKZeTt1SMtususUBCBTdL1wsQeL4gZ6oaPvRbtQ52Xq7wWQfV5uvhA RkItkYgGUmikPbrgSJgDtzx2WQUkDj7GcP1fJ7g6z7xB8tzVlHePVxTJEo/nfq4FD6SrO0GzN AHw/phuu7OzZargiSxcJJq9tnnPHej5ujozNhiSzzA5RHuAKCEEixMuOxkQYZdKHSDFna6C3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220538 Archived-At: On Thu, 30 Nov 2017 12:30:07 +0100 Mathias Megyei wrote: > On 11/30/2017 11:00 AM, Stephen Berman wrote: >> I thought if I call `git log -1' on the current branch, it will >> only show if it is in the current branch, > > When you want to know whether (originally committed to emacs-26) has > been merged into master or any other local branch then you can use > git branch --contains > In order to list remote tracking branches please add option '-r' > git branch -r --contains Thanks, but that doesn't answer my question. I want to call `git ' 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 ' and, if it shows the branch I want, then call `git log -1'. If so, fine, though a bit disappointing it's not more straightforward. Steve Berman