From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: git log question Date: Thu, 30 Nov 2017 22:05:03 +0700 Message-ID: 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; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1512054386 10238 195.159.176.226 (30 Nov 2017 15:06:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2017 15:06:26 +0000 (UTC) Cc: Mathias Megyei , Emacs developers To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 30 16:06:14 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 1eKQPk-0001tA-MT for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 16:06:12 +0100 Original-Received: from localhost ([::1]:48761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKQPr-0000ET-If for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2017 10:06:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKQP5-0000Dl-4E for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:05:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKQOz-0001I6-BE for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:05:31 -0500 Original-Received: from mail-ot0-x230.google.com ([2607:f8b0:4003:c0f::230]:41395) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKQOz-0001HL-72 for emacs-devel@gnu.org; Thu, 30 Nov 2017 10:05:25 -0500 Original-Received: by mail-ot0-x230.google.com with SMTP id b54so6320539otd.8 for ; Thu, 30 Nov 2017 07:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=sXM9a/SUybMQV/VruTJ7D3SSHxO+R7tL7OEJo5dv54k=; b=bKs0Yr+LPnKo2BLKKOoNbtFuxdjLB4hMufj136bTTbya/8nQOkRZz+/iLGATfRXKQ5 fMzO+/krR+y4SWLps0BlOChoY0PAUjDG/MMnfSUK1+NQuxwdY3WdomQKI3EbtFwePrVS JIjISPfrRXlGoClMhk1Nyn791SCSgEGJGDN55klbzbQFCdZJVMqTSs9dO334bp2gTCKf PaS5ZRwDGlnVCHcltWZpbItsugmVAC2Lt+vV1t9GJldogSTVS4USFejrDRwmQYb7VQsK DaHgs0Sg3Ls0jpUGx5XAuOnleOEnDRlo1/EfIa9F2IR80D5KVsUzQ/0eju9DkVsl+Z78 ApRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=sXM9a/SUybMQV/VruTJ7D3SSHxO+R7tL7OEJo5dv54k=; b=S10fSCRGEg3Bbltju7SpLuqYD+bDfy8TQI13TvcugMD1MfL0qYfYCx+UxdBDfB0Fhs i1HubAX5Xt+707P4ccYDf5ffIP7DGENelG7uGlhERfx9f9R63ME+a04DbAyTaeZJhZTe ryb0WKQsBqfql5CmmjrobcUliTN3SLw7kqenFBoip2CzKyuSy/0nGPcIA1vEGfRAYjG2 XtyoKw39O1S2YAGGYK5mFEWZz89KpCVu6TXPws9YTLaxpaUaeokfNL1lrCMEgAMvaZb4 1yLvTxuXP3WGytlsKWOPfSXBh08/gMb+mfw2UTk3aqWRaArEMGDafU8nhD37ySPzOVXL Mdzg== X-Gm-Message-State: AJaThX5iHXnPKALEtM9fDG1nCpZmKubGft3TQd69jGiTSq5Gqoz+H2P3 vcB/rRggM7zKFFEcxDn5UUcy647Ccn7Et+jTONOWSg== X-Google-Smtp-Source: AGs4zMZWkOK8dbjJoM5dpYB6NIEEusDAGjxPDeaPAmqdK/DzDJuIylJxIDzw4U3/sWV6QCK0gN/Y6LZOC4de/PvJ+ec= X-Received: by 10.157.46.168 with SMTP id w37mr5487512ota.221.1512054324425; Thu, 30 Nov 2017 07:05:24 -0800 (PST) Original-Received: by 10.74.121.148 with HTTP; Thu, 30 Nov 2017 07:05:03 -0800 (PST) In-Reply-To: <87shcvdf27.fsf@gmx.net> X-Google-Sender-Auth: 4k9eiSCZzUzhV5jceF3uhErJyFU X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::230 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:220545 Archived-At: > I'm not sure what you mean by "reachable from a branch"; what I want is > to find out whether a specific commit (identified by its hash) exists on > the current branch -- not just whether it exists on some branch in the > current repository -- and if so, to see that commit. A Git repository is a directed acyclic graph of commits, each next commit referencing the previous. The word =E2=80=9Creachable=E2=80=9D is us= ed in its usual graph theory meaning: that there exists a path that starts at the head of the current branch, follows this child=E2=80=93parent relationships, and ends in the commit you are interested in. If you have a graphical display handy, run this: $ gitk master emacs-26 b407c521f2 It will show you how the graph is structured. On a text-only terminal, this is an acceptable substitute for gitk: $ git log --oneline --graph master emacs-26 b407c521f2