Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs + magit - vertical blame

Tags:

emacs

magit

I recently decided to switch from vim to spacemacs, which has already magit included. When working with Vim it is very easy to show :Gblame, and it shows vertical menu with commits, its author and side by side code (similar how to original git blame works).

I discovered magit-blame, but it shows diff in different way (commit, author and below code) which seems unnatural to me. Is it possible to change this view to be similar how fugitive works? I know that emacs is editor of near endless possibilities so it must be possible in some way.

I discovered also that I can use vc-annotate but it doesn't preserve syntax highlighting.

like image 720
Michał Darda Avatar asked Dec 17 '15 09:12

Michał Darda


2 Answers

Looks like it's supported now (see tarsius' link)!

Run magit-blame, then magit-blame-cycle-style (or magit-blame again then c) to cycle to the vertical mode.

like image 59
isaacphi Avatar answered Nov 10 '22 15:11

isaacphi


Magit does not currently support this, but there are plans to support multiple display styles: https://github.com/magit/magit/issues/2937.

like image 23
tarsius Avatar answered Nov 10 '22 14:11

tarsius