From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Merge-base alias for git vc-diff Date: Tue, 08 Jan 2019 00:33:17 +0200 Organization: LINKOV.NET Message-ID: <878szw85ea.fsf@mail.linkov.net> References: <87bm58ornb.fsf@mail.linkov.net> <92f058a4-ef98-725b-9603-5a671113dfaa@yandex.ru> <87lg4aak10.fsf@mail.linkov.net> <87o98zapae.fsf@mail.linkov.net> <7e8020d6-92df-a475-cbd7-98f42676a99b@yandex.ru> <877efl8pgj.fsf@mail.linkov.net> <871s5t1knu.fsf@gmail.com> 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 1546900396 27037 195.159.176.226 (7 Jan 2019 22:33:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2019 22:33:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel , Stefan Monnier , Dmitry Gutov To: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 07 23:33:12 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggdSJ-0006u2-Qh for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2019 23:33:11 +0100 Original-Received: from localhost ([127.0.0.1]:51685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggdUQ-0000YZ-HF for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2019 17:35:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggdUB-0000Ue-9m for emacs-devel@gnu.org; Mon, 07 Jan 2019 17:35:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggdU8-0005Hn-VB for emacs-devel@gnu.org; Mon, 07 Jan 2019 17:35:05 -0500 Original-Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]:13172) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ggdU5-0004zT-KS for emacs-devel@gnu.org; Mon, 07 Jan 2019 17:35:03 -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 E221C5C44D7; Mon, 7 Jan 2019 22:34:55 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com (unknown [100.96.19.74]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8BBC65C425D; Mon, 7 Jan 2019 22:34:55 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Mon, 07 Jan 2019 22:34:55 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Occur-Quick: 3fb57840021223db_1546900495738_2752075997 X-MC-Loop-Signature: 1546900495737:2173042108 X-MC-Ingress-Time: 1546900495737 Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a35.g.dreamhost.com (Postfix) with ESMTP id 2F9057F5B8; Mon, 7 Jan 2019 14:34:55 -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:content-transfer-encoding; s=linkov.net; bh=GweVc4 PXn29kQ1CuWXfJ/F7TRXM=; b=NRp24DFE+jSL3FK9SmuJH0fV3jwHx8EONYBDR3 bj45oz1zzUR8EUM4ZJfnsws4MTUw8rXQf2QLhIyN9MV2LjqT/f5UftcE0332D1OR uLYntzds5lrHq38Vw5jPsc3DnWJIZLAam3Gh2XKunBJYy3fY5eHsRNq+l8LQQMJ7 KdF7o= Original-Received: from mail.jurta.org (m91-129-109-141.cust.tele2.ee [91.129.109.141]) (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-a35.g.dreamhost.com (Postfix) with ESMTPSA id AA6FC7F5CC; Mon, 7 Jan 2019 14:34:51 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a35 In-Reply-To: <871s5t1knu.fsf@gmail.com> (=?iso-8859-1?Q?=22Jo=E3o_T=E1vora?= =?iso-8859-1?Q?=22's?= message of "Thu, 03 Jan 2019 21:44:05 +0000") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrvdejgdduiedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtledrudegudenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdelrddugedupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepjhhorghothgrvhhorhgrsehgmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.214.17 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:232240 Archived-At: >> The only problem is that then we have to use different amount of dots >> for vc-root-diff and vc-print-root-log because in git: =E2=80=98git di= ff >> A...B=E2=80=99 corresponds to =E2=80=98git log A..B=E2=80=99 whereas =E2= =80=98git diff A..B=E2=80=99 >> corresponds to =E2=80=98git log A...B=E2=80=99 > > Really? Ugh, that unfortunate. Well we could just live with it or use > different symbols to abstract it away. I still have no idea how to read a start/end revision in =E2=80=98C-u C-x v L=E2=80=99. Currently it accepts a limit as a number. I wonder is it possible to parse its minibuffer's input and to distinguish such number from the revision? Maybe using a regexp?