From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: comparing code on different branches Date: Tue, 04 Jul 2017 07:53:35 +0200 Message-ID: <87r2xw21eo.fsf@jane> References: <9A9EF0AB-8FD3-44C9-AAE8-ACACDEC69059@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499147645 8089 195.159.176.226 (4 Jul 2017 05:54:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2017 05:54:05 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: Jean-Christophe Helary , emacs-devel To: John Wiegley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 04 07:54:01 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 1dSGmb-0001fq-Kd for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2017 07:53:57 +0200 Original-Received: from localhost ([::1]:38723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSGmf-0001Iw-5v for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2017 01:54:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSGmZ-0001Ip-4z for emacs-devel@gnu.org; Tue, 04 Jul 2017 01:53:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSGmR-0001vd-Pk for emacs-devel@gnu.org; Tue, 04 Jul 2017 01:53:55 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:39839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSGmR-0001vG-JH for emacs-devel@gnu.org; Tue, 04 Jul 2017 01:53:47 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id C664BE6669; Tue, 4 Jul 2017 07:53:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BUmkhiCnwd3e; Tue, 4 Jul 2017 07:53:40 +0200 (CEST) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 4E926E62DE; Tue, 4 Jul 2017 07:53:40 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 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:216148 Archived-At: On 2017-07-04, at 02:57, John Wiegley wrote: >>>>>> "JH" == Jean-Christophe Helary writes: > > JH> Now, when I test my code modifications, I do eval-buffer etc. But what if > JH> I also want to test what master does to compare the results? > > JH> Do I have to go through a stash/checkout/test/checkout stash apply cycle? > > If it's just one file, you can use C-x v ~ master RET to open master's version > in another buffer, and then eval-buffer there to compare. Nice indeed! BTW, is there a Magit way of doing this? Best, -- Marcin Borkowski