From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: git-handler.el Date: Mon, 14 Aug 2017 18:40:30 +0200 Message-ID: <87o9ri3xxd.fsf@detlef> References: <87eftk9uxe.fsf@bernoul.li> <87zic7ze06.fsf_-_@detlef> <87d192aold.fsf@bernoul.li> <87o9rmiems.fsf@detlef> <877ey9cb9l.fsf@bernoul.li> <87inhstx2y.fsf@detlef> <87wp67suba.fsf@detlef> 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 1502728908 6763 195.159.176.226 (14 Aug 2017 16:41:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2017 16:41:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Jonas Bernoulli , Dmitry Gutov , Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 14 18:41:42 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 1dhIQu-0001K5-7X for ged-emacs-devel@m.gmane.org; Mon, 14 Aug 2017 18:41:40 +0200 Original-Received: from localhost ([::1]:33370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhIR0-0002mD-9y for ged-emacs-devel@m.gmane.org; Mon, 14 Aug 2017 12:41:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhIPv-0002l6-Vr for emacs-devel@gnu.org; Mon, 14 Aug 2017 12:40:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhIPq-0001ir-TO for emacs-devel@gnu.org; Mon, 14 Aug 2017 12:40:39 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:51079) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhIPq-0001gV-It for emacs-devel@gnu.org; Mon, 14 Aug 2017 12:40:34 -0400 Original-Received: from detlef.gmx.de ([212.86.53.239]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M20Jj-1dRyQ038Nn-00ty3K; Mon, 14 Aug 2017 18:40:31 +0200 In-Reply-To: (Yuri Khan's message of "Sun, 13 Aug 2017 17:08:35 +0700") X-Provags-ID: V03:K0:zfAkL0AA1Q04r3stVSdzMkvUaTsTDyzjvRnB+Ui3RpcSdBAQqE0 K4WUfEaZBvKl6kBcG1KE4u9Yj22k3uuRx315ydo/+LhOW7kSrMrlwrT6RgKnHenMMQHG8ck KO5Ok7NsipIYVmoXUoI2cZoTZi08qs0UTo+2GYFjvUz4CuHy4zTTCEm3pxiZKxP3NvXcWr+ v5jWxRbSGIatBZIxm1P5A== X-UI-Out-Filterresults: notjunk:1;V01:K0:QBZ08GStlRw=:U7jZX/lqYKzRAK1tMhJigE OFCisWgghwIxXv+j1VetGbWLxZDNAZ8c6XnJTbosN9V/dTJKm+G3lXb+s2VR5yrv6Cjkhpyj6 YEqKA6nLWeApq8Kh5/533f4PWCzcyKNwbG35HkduZ7Mt51A6pulqtrmYexjcVOYDuUM/eSUfn LBupee+55EXdGMCFMPBCn9Dkpzq5S+OHOzWzMZ7MWtJ01Rev/BkJzfTan7Fc4iYs7XZBa46mx scrtwY3+720Uo1hZmbKMabGKjnnx6uQvdnNnCk2j20kmDGP7NsgpxnfMsDo0kiQoVJ+9fUpSh +QjujF/RkeD2jd4Mt7WFb+MO24zWbOWcj0/sLaJ0bgu8Kpxd4QNKwsCSixMFtm4ffSbDfL5Mb hIZ/kyQ3XzWYKkW+FxQz5KaCeE6IprM0EhcfFog+LIbhvYxnUDKUozsX4WcU6yPHC1CP8GcaE mb52Xfbj8c0i8XUIREinvCKNS7u4I2E8F0Eed05oMd8TrNLcn8zepCk6VqEi/QVilYQZGmOat xNjPnEYTO8NS7qrqrGqEkMoh3pS9tolOcMw1shoHeyRqMzN/xCYcTWQ0IqwPCZYQxkbj3uXNc KMePrNZmCQKtPDZm2aHM9AFMbiF+VwQE8WwYRlL3ouOlD3Vxt0B/f1uWSVLuxMY5fb4AO0lo7 ve9FU8kLf10ZfVd9lnJBArAZgDOLnbWIz7OHY4AdQfPXBGVyEyFfhHRZ3SxMIH3o9/48OTWuE C2IWwYRZgE6bVi0Lc74YR9aaShg/aFsCAnOiHIehoqM3pfQA81V052ko47Fg87e4hgOZRlvd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 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:217542 Archived-At: Yuri Khan writes: > On Sun, Aug 13, 2017 at 4:14 PM, Michael Albinus = wrote: > >>> As a Git user, I frequently want to >>> browse the whole repository as of a specific revision. Use case: =E2=80= =9CTwo >>> months ago, function foo was changed to call function bar. How did bar >>> look at that point?=E2=80=9D >> >> You know, that function bar is declared in file baz.el. > > Not necessarily. It is today, but two months ago it could have resided > in any of baz.el, quux.el or xyzzy.el. I fear this cannot be followed easily with file name handlers. As the feature says, file name handlers work on file level, not on function level. Even "git log -L ::" does not return results for other files. >> So you could >> inspect the revisions of baz.el by looking into directory >> "/home/albinus/src/emacs/lisp/baz.el@@/master" (given you're interested >> in branch master). > > In the use case being discussed, I=E2=80=99m not interested in master. You could always use another branch. > Or, more specifically, not in its current position, and not in the > whole set of its commits that modify baz.el. I am interested in one > specific commit, say ef7a18a071, that does not modify > baz.el. Presented by a list of commits modifying baz.el, I will > literally be unable to find the revision I=E2=80=99m interested in. (No, > making a note of the commit timestamp and bisecting the other commit > list for that will not work. In Git, chronological order is not > guaranteed within a branch.) So you could go to "/home/albinus/src/emacs@@/ef7a18a071", as said somewhere else. You will see all files which have been changed by this commit. > (Because Emacs is all about custom and idiosyncratic workflows[1], > here=E2=80=99s mine: > > * I never use find-file interactively except to create a new file or > jump to a directory on a remote server (via Tramp). > * I navigate from a file to its containing directory or from a > directory to its parent using dired-jump, and from a directory to a > file using dired-find-file. I haven't played with this, but it might be possible to support this workflow. And yes, such revisioned file names shall work also remotely, for Tramp files. > [1]: https://xkcd.com/1172/ ) :-) I like this workflow there. Maybe we find a way to reenable it. Best regards, Michael.