From: Tino Calancha <tino.calancha@gmail.com>
To: John Wiegley <jwiegley@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: comparing code on different branches
Date: Tue, 4 Jul 2017 14:17:53 +0900 (JST) [thread overview]
Message-ID: <alpine.DEB.2.20.1707041415150.7483@calancha-pc> (raw)
In-Reply-To: <m2podh6msv.fsf@newartisans.com>
On Mon, 3 Jul 2017, John Wiegley wrote:
>>>>>> "JH" == Jean-Christophe Helary <jean.christophe.helary@gmail.com> 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 tip! Thanks.
I used to go to the shell for that (less convenient):
M-! git show version:path RET
M-x rename-buffer blah RET
next prev parent reply other threads:[~2017-07-04 5:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-04 0:53 comparing code on different branches Jean-Christophe Helary
2017-07-04 0:57 ` John Wiegley
2017-07-04 1:14 ` Jean-Christophe Helary
2017-07-04 5:17 ` Tino Calancha [this message]
2017-07-04 5:53 ` Marcin Borkowski
2017-07-04 9:30 ` Yuri Khan
2017-07-04 23:05 ` Richard Stallman
2017-07-04 23:48 ` Jean-Christophe Helary
2017-07-05 22:59 ` Richard Stallman
2017-07-05 5:54 ` Etienne Prud’homme
2017-07-05 15:55 ` Yann Hodique
2017-07-05 16:07 ` Kaushal Modi
2017-07-05 19:56 ` Etienne Prud'homme
2017-07-06 15:58 ` Richard Stallman
2017-07-13 21:48 ` Etienne Prud’homme
2017-07-04 17:51 ` Stephen Leake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1707041415150.7483@calancha-pc \
--to=tino.calancha@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=jwiegley@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.