[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: comparing code on different branches
From: |
Stephen Leake |
Subject: |
Re: comparing code on different branches |
Date: |
Tue, 04 Jul 2017 12:51:46 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (windows-nt) |
Jean-Christophe Helary <address@hidden> writes:
> Sorry, it is more a git question than an emacs question:
>
> I have created a branch where I do my work.
>
> Now, when I test my code modifications, I do eval-buffer etc. But what
> if I also want to test what master does to compare the results?
>
> Do I have to go through a stash/checkout/test/checkout stash apply cycle?
>
> I thought I could actually do my modifications in the scratch buffer
> and keep the original file clean, so that I can always compare, but
> that seems a bit convoluted. Any better idea?
Workspaces are cheap; I keep a full checkout of master, and one of each
branch I'm working on, at all times.
You can use 'git worktree' to minimize fetch and push operations to the
central repository.
--
-- Stephe
- Re: comparing code on different branches, (continued)
- Re: comparing code on different branches, Etienne Prud’homme, 2017/07/05
- Re: comparing code on different branches, Yann Hodique, 2017/07/05
- Re: comparing code on different branches, Kaushal Modi, 2017/07/05
- Re: comparing code on different branches, Etienne Prud'homme, 2017/07/05
- Re: comparing code on different branches, Richard Stallman, 2017/07/06
- Re: comparing code on different branches, Etienne Prud’homme, 2017/07/13
Re: comparing code on different branches,
Stephen Leake <=