[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: comparing code on different branches
From: |
Yuri Khan |
Subject: |
Re: comparing code on different branches |
Date: |
Tue, 4 Jul 2017 16:30:47 +0700 |
On Tue, Jul 4, 2017 at 12:53 PM, Marcin Borkowski <address@hidden> 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.)
- comparing code on different branches, Jean-Christophe Helary, 2017/07/03
- Re: comparing code on different branches, John Wiegley, 2017/07/03
- Re: comparing code on different branches, Jean-Christophe Helary, 2017/07/03
- Re: comparing code on different branches, Tino Calancha, 2017/07/04
- Re: comparing code on different branches, Marcin Borkowski, 2017/07/04
- Re: comparing code on different branches,
Yuri Khan <=
- Re: comparing code on different branches, Richard Stallman, 2017/07/04
- Re: comparing code on different branches, Jean-Christophe Helary, 2017/07/04
- Re: comparing code on different branches, Richard Stallman, 2017/07/05
- 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, 2017/07/04