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: comparing code on different branches Date: Tue, 4 Jul 2017 16:30:47 +0700 Message-ID: References: <9A9EF0AB-8FD3-44C9-AAE8-ACACDEC69059@gmail.com> <87r2xw21eo.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1499160689 2697 195.159.176.226 (4 Jul 2017 09:31:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2017 09:31:29 +0000 (UTC) Cc: John Wiegley , Jean-Christophe Helary , emacs-devel To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 04 11:31:22 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 1dSKAw-00007b-Mf for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2017 11:31:18 +0200 Original-Received: from localhost ([::1]:39860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSKB1-0007UY-UM for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2017 05:31:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSKAp-0007RV-Ct for emacs-devel@gnu.org; Tue, 04 Jul 2017 05:31:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSKAo-0005L0-HM for emacs-devel@gnu.org; Tue, 04 Jul 2017 05:31:11 -0400 Original-Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]:38691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSKAo-0005Jd-CT for emacs-devel@gnu.org; Tue, 04 Jul 2017 05:31:10 -0400 Original-Received: by mail-it0-x22c.google.com with SMTP id k192so68738155ith.1 for ; Tue, 04 Jul 2017 02:31:08 -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; bh=ah9EdFXgHkLp5hP+oZRZeyGbd5dQDaOne0ZK6zq0e7k=; b=UjgZnZ7HxoUuynJT17SoFDLq5s66rzEp6CysYDnneRv7Zlp7/0aA4Hy1jJn9Bd89fc Yu2O0gzvEtLce4UNrX6RgkcJ9umTsBCyv0yOXZF46knpfZsAoNCf3se7WyCmbLnvj1uu SPuCwYcAmMiVPzkrqQ06WmDp/1tRCkA98QAPj/5xbbUgiEr1Xg9dBM69QSTExbYALYu9 gFADVafNQ3ho3L/w2Ppmex3eH13K+d/i96/F+/USXlQ2z7R61oisN6yu2q8CRUDPtUMs 6BJ/byhxI0YWsW1B9PGyKJfLGG/07E83NWDjDZ0bhah0a2kcM4UlcPl6TAa+zp50sb1D skXg== 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; bh=ah9EdFXgHkLp5hP+oZRZeyGbd5dQDaOne0ZK6zq0e7k=; b=erav9y7wWNI/EXRBItSTaSj35Ud9HUDjapZVt5shnwtAb3i7HeRQdpm795TbApo1dJ Kxyz/9Wa8IH5Eh7XX1MN13Nl6jL5N+5BSqAdbaLptFATyFtcNFe2fEUekPkOd8J55/wk hMfE+cDB4mmBqyPKWEyUInIrEYCeTVySMJr7WvOU9JtjU/H128TrpGFalO4BbNpQoBW5 smACBmc3fDd04cdm+xzO8vLVBEaW7nn5VGqJVgFX/J+g6CDZDLQdkf+3cYU8vkDenAWI RgmmdzTD7FLPoBm0rYa15QZTV9p91nqq/D60HMz0TM7IyBN9FBTyz+fxhSS+LLfvr9B7 BhSw== X-Gm-Message-State: AIVw1126rYrmcmNZYfFHJpRj5TTCaMScLhv/lhFJNJqQDIeoUBP36dT2 BrRAaVrMi6XdRmZeq1JWfvOfD98kbw== X-Received: by 10.36.178.71 with SMTP id h7mr12926847iti.38.1499160668121; Tue, 04 Jul 2017 02:31:08 -0700 (PDT) Original-Received: by 10.79.122.147 with HTTP; Tue, 4 Jul 2017 02:30:47 -0700 (PDT) In-Reply-To: <87r2xw21eo.fsf@jane> X-Google-Sender-Auth: VzjCbqb5XBEAFJkBFxK0uK5-gZo X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22c 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:216150 Archived-At: On Tue, Jul 4, 2017 at 12:53 PM, Marcin Borkowski wrote: > BTW, is there a Magit way of doing this? There is. * M-x magit-find-file asks for a revision and a file name, and opens what you ask for. * In a buffer visiting a file in work tree, you can invoke M-x magit-blob-previous and it will open a new buffer with the last committed revision of the same file. Repeating M-x magit-blob-previous (or pressing p) from that buffer opens the same file as of the previous commit where it was modified. M-x magit-blob-next (or n) travels in the other direction. * In a buffer showing a diff, you can press RET on any source code line and it will take you to that file at the relevant revision. (But not in a diff to the working tree.)