3 ms·
I also love: - magit-blame: show the commits for each line - magit-find-file: allows you to open a file from any branch. So you can easily have the same file f
by globuous 6y ago
I also love:
- magit-blame: show the commits for each line
- magit-find-file: allows you to open a file from any branch. So you can easily have the same file from two different branches opened side by side.
- magit-log-buffer-file: shows the git tree with all commits that modified the file in the current buffer (which you can then navigate just like you would when doing M-x magit-status l l)
And this package is pretty sweet as well: https://melpa.org/#/git-timemachine https://melpa.org/#/git-timemachine , it allows you to navigate the git tree for a given file easily.
- globular-toast 6y agomagit-blame also allows you to step back through the history for each line by repeatedly pressing b. So after a developer has run formatters for the whole codebase and "broken" git blame, you can still see the real blame by just pressing b twice.
- ruricolist 6y agoIt's not obvious from the name, but magit-log-buffer-file also lets you browse the history of just the current region.
- yxhuvud 6y agoIt exist in stock emacs as vc-region-history. Fantastic functionality.
- mplanchard 6y agoThanks for mentioning magit-find-file. I’ve been using magit recently for the ease of doing commits of smaller hunks, but I didn’t know about find-file. I was just in a situation yesterday where I could’ve used it—wound up going to look at the second version of the file in GH.
- pmoriarty 6y agoCould you elaborate on how git-timemachine is different from magit, as the latter also lets one navigate the git tree for a given file, doesn't it?