From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: git log question Date: Thu, 30 Nov 2017 16:05:48 +0100 Message-ID: <87efofrelv.fsf@linux-m68k.org> References: <87bmjkgk6h.fsf@gmx.net> <920d2cc0-a9b8-b740-1b4a-51403a790f90@mnet-mail.de> <87wp28c6ul.fsf@gmx.net> <87shcvdf27.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512054458 24992 195.159.176.226 (30 Nov 2017 15:07:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2017 15:07:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Mathias Megyei , Emacs developers , Yuri Khan To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 30 16:07:34 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 1eKQR1-0005gV-DB for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 16:07:31 +0100 Original-Received: from localhost ([::1]:48765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKQR1-0001DN-Sn for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 10:07:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKQPT-0000Ky-RV for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:06:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKQPP-0001tl-Us for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:05:55 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:52788) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKQPP-0001rW-NP for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:05:51 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3ynghF72dMz1qsk3; Thu, 30 Nov 2017 16:05:49 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3ynghF6g9tz1w2jG; Thu, 30 Nov 2017 16:05:49 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id BSmCg4vT05r0; Thu, 30 Nov 2017 16:05:49 +0100 (CET) X-Auth-Info: vyO11cnjQRpR00+53ChXPSGINSviF/lZ1IZHMhso+oeGTq+mmBpuVH1kZ+z0dlZ3 Original-Received: from localhost (ppp-188-174-145-191.dynamic.mnet-online.de [188.174.145.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 30 Nov 2017 16:05:49 +0100 (CET) Original-Received: by localhost (Postfix, from userid 1000) id 446BA2C266E; Thu, 30 Nov 2017 16:05:48 +0100 (CET) X-Yow: ..Hmmm...This thing is really VIBRATING! ..It's getting WARM, too! In-Reply-To: <87shcvdf27.fsf@gmx.net> (Stephen Berman's message of "Thu, 30 Nov 2017 15:19:44 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.18.0.9 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:220546 Archived-At: On Nov 30 2017, Stephen Berman wrote: > Thanks, but this does do what I want. For example, when I invoke `git > branch --contains b407c521f2' on emacs-26 (here currently at > 408862f02a), it outputs `master', but when I invoke `git merge-base > --is-ancestor b407c521f2 HEAD && git log -1 b407c521f2' on emacs-26, it > outputs nothing; That's correct, b407c521f2 is only reachable from master. So this is exactly what you were looking for. > That is, `git log' invoked with a specific commit will find that commit Git lets you process any valid commit in your repository. That's a feature. All commits in your repository are alike, no matter how they are named. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."