From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#38044: 27.0.50; There should be an easier way to look at a specific vc commit Date: Wed, 13 Nov 2019 23:03:27 +0200 Organization: LINKOV.NET Message-ID: <87d0dvmqu8.fsf@mail.linkov.net> References: <87ftj5at1q.fsf@gnus.org> <87r22phsoj.fsf@gmx.net> <87bltslnpo.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="254981"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , 38044@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 13 22:50:30 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iV0Wz-00149E-CM for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2019 22:50:29 +0100 Original-Received: from localhost ([::1]:51374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV0Wx-0002HI-Uy for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2019 16:50:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47617) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV0Wd-0002F6-AG for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 16:50:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iV0Wc-00062v-An for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 16:50:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51442) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iV0Wb-00062D-EQ for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 16:50:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iV0Wb-0007ps-8f for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 16:50:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2019 21:50:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38044 X-GNU-PR-Package: emacs Original-Received: via spool by 38044-submit@debbugs.gnu.org id=B38044.157368178830044 (code B ref 38044); Wed, 13 Nov 2019 21:50:05 +0000 Original-Received: (at 38044) by debbugs.gnu.org; 13 Nov 2019 21:49:48 +0000 Original-Received: from localhost ([127.0.0.1]:60255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0WK-0007oV-0T for submit@debbugs.gnu.org; Wed, 13 Nov 2019 16:49:48 -0500 Original-Received: from dog.birch.relay.mailchannels.net ([23.83.209.48]:11061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0WH-0007oM-I0 for 38044@debbugs.gnu.org; Wed, 13 Nov 2019 16:49:46 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6C13A2122F; Wed, 13 Nov 2019 21:49:44 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a44.g.dreamhost.com (100-96-60-110.trex.outbound.svc.cluster.local [100.96.60.110]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E976D21E95; Wed, 13 Nov 2019 21:49:43 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a44.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 13 Nov 2019 21:49:44 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Vacuous-Wipe: 08d0671549c4c1f3_1573681784217_2400347332 X-MC-Loop-Signature: 1573681784217:3761484787 X-MC-Ingress-Time: 1573681784217 Original-Received: from pdx1-sub0-mail-a44.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a44.g.dreamhost.com (Postfix) with ESMTP id E9F5485225; Wed, 13 Nov 2019 13:49:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=KcX/3+ASO/WCAf/qJb3nbPz2LKA=; b= zY8eRElqkVvP3XTz4evgZrHwkFLbX6qLXR/0CMrLEJtHykblmzEF8+9Pofkhr54l XXdBOO0R1jT4pluMw8YZQDxyTDo9nwe29+fn2gw6OY28HRcpJ4aH0UR9PBqA3fQb BbLrhpzSfdu1CbDQ6ig+FLeWpd4DFLF9I35o58UYcQ0= Original-Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a44.g.dreamhost.com (Postfix) with ESMTPSA id 128C485224; Wed, 13 Nov 2019 13:49:38 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a44 In-Reply-To: <87bltslnpo.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 03 Nov 2019 22:16:51 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171506 Archived-At: >>> For that case, Emacs should have a command that prompts for an ID >>> (defaulting to the ID under point), and then (unless default-directory >>> is already in a vc-controlled directory), prompts for the directory to >>> look for that ID, and then display the commit. >> >> I wrote such a command (appended below) for my own use, but it's >> git-specific and I don't know the innards of VC well enough to adapt it, >> which is why I haven't proposed it for inclusion in Emacs. Maybe some >> of it could be used for a VC command. > > It should be easy to add a command properly integrated into the innards of VC > by just grepping for "log-search" in lisp/vc/vc*.el (there are only 7 matches), > and after copying to replace "log-search" with "log-show", and the new command > is ready. Actually "log-show" is a bad name. It's too git-specific OT1H, and OTOH it's too general since its output varies that doesn't fit to log-view-mode. I hoped git would be able to search both sha and commit message in one command, something like: git log -1 5761a1a393 --grep=5761a1a393 to output the log of sha 5761a1a393, and logs of matching commit messages, but this is not possible in git.