Emacs + magit - vertical blame
Asked Answered
P

2

7

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.

Paget answered 17/12, 2015 at 9:54 Comment(1)
Good question, worth asking on the issue tracker in my opinion: github.com/magit/magit/issues Magit and git-gutter both use overlays but git-gutter puts its data on a left sided column. I would start my investigation here…Rinaldo
E
3

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.

Erle answered 21/4, 2019 at 17:48 Comment(2)
Any way to set it as default?Salable
This still works as of 03/2021, but is deprecated. magit-blame-addition is the new name.Flaviaflavian
G
1

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

Garrotte answered 14/6, 2017 at 15:22 Comment(1)
thank you for the commit github.com/magit/magit/commit/… so you can update this answer ;)Sherysherye

© 2022 - 2024 — McMap. All rights reserved.