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-handler.el Date: Sun, 13 Aug 2017 17:08:35 +0700 Message-ID: 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 1502618984 20666 195.159.176.226 (13 Aug 2017 10:09:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2017 10:09:44 +0000 (UTC) Cc: Jonas Bernoulli , Dmitry Gutov , Emacs developers To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 13 12:09:38 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 1dgppu-0004pr-Bj for ged-emacs-devel@m.gmane.org; Sun, 13 Aug 2017 12:09:34 +0200 Original-Received: from localhost ([::1]:60022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgpq0-0002tY-PX for ged-emacs-devel@m.gmane.org; Sun, 13 Aug 2017 06:09:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgppL-0002s5-Ch for emacs-devel@gnu.org; Sun, 13 Aug 2017 06:09:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgppK-0006oE-At for emacs-devel@gnu.org; Sun, 13 Aug 2017 06:08:59 -0400 Original-Received: from mail-it0-x22f.google.com ([2607:f8b0:4001:c0b::22f]:35714) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgppK-0006o0-5j for emacs-devel@gnu.org; Sun, 13 Aug 2017 06:08:58 -0400 Original-Received: by mail-it0-x22f.google.com with SMTP id 76so11067996ith.0 for ; Sun, 13 Aug 2017 03:08:56 -0700 (PDT) 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=ICxKfxTmKXBLRguCMdpTIxw9uo8cpF/bp42GnuXKCIQ=; b=QR47efld9ezrQY8sfqMUEr3C5NFL4aDgXaSxgQHwcYDMbIuaZnz1um7WtVs0G0sS0T f+w1tIXZnUDF2/LsO7NT6ioTZvJUKdg0VKWks9pHTMJxo+Lmq4q8deZd4MRj0kKjBlwY VHbrRN7IF++faYQVd1OlCD3OblWReUeF3wDyf8EkQXrXfqXjNJ19J+Js9sN0XrWqvsvq SVBeiafyTGEkK3i5a3Xns6+SlmWxPL2U04MU5otJfA++To7tMhkboqMOOhTYF0ZY4Xll g7wL6KQFa06MhU0EbzQ31Hbkz4XdPDphm6igM4P7zsStLkoANPzjQ2/EKLi6/SoyzFyp /RsA== 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=ICxKfxTmKXBLRguCMdpTIxw9uo8cpF/bp42GnuXKCIQ=; b=SpYxJPGmWbUrFEjc6BNPlDNB5zyx5ScePFwMU0Uh4TPKqst6ETxFP5fid7mgk4N5mi enDxrWslFpqDyYPAawodXYEGpTyVbhSOdx5rv8NU6Xk+bjwt2EuCHbabsCDcChNStGuV KR6jA2kEa7P5MxcqNTzyhKi0IMQPnc3w74utVssfZbyxCljDfzjuAofR6MN2W6tqlGUK UxyTk2Y8cUYmZ7hMYgiFaYfFQ8QCpxCy5FN1UJtY8Id8S0M4ZGkEdH2Y8L+qY0a7jPKt V7CyKJRYJEljRIhzz7Hzuir+UVJHeKwyZ3bwLLKqa7D/E6CkteWgrvRYkudDE3DYxXr7 JzCQ== X-Gm-Message-State: AHYfb5iilcjLWs11WztRd1OE0HF1JqMwRx1wfsJO64g6Z6hVainneCTa 7U20YxuAtTNoo2g5ttRXI2+C8l3tfA== X-Received: by 10.36.196.68 with SMTP id v65mr2899922itf.117.1502618936147; Sun, 13 Aug 2017 03:08:56 -0700 (PDT) Original-Received: by 10.79.144.208 with HTTP; Sun, 13 Aug 2017 03:08:35 -0700 (PDT) In-Reply-To: <87wp67suba.fsf@detlef> X-Google-Sender-Auth: UFL6szIFR47VKAwURv_uuQXOsXw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22f 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:217506 Archived-At: On Sun, Aug 13, 2017 at 4:14 PM, Michael Albinus w= rote: >> 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. > 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. 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.) (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. [1]: https://xkcd.com/1172/ ) >> Also, in a dired buffer showing src/emacs/lisp@@/ef7a18a071, will >> dired-jump jump to src/emacs@@/ef7a18a071? > > Could be, yes. Likely, it needs some adaption of dired-jump (it uses > file-name-directory for traversing the directory path), but why not.