0

Can I have magit-blame somehow only show the changes introduced with the last commit?

EDIT: what have I attempted?

I've looked at the docs of magit-blame and explored all flags in the magit-blame interface. Essentially I've inherited a repository and I want to see the changes introduced by a commit whilst being able to continue working on the code. That's why I would like to have magit-blame-addition overlays and not a simple diff.

2
  • 1
    What have you attempted? Also, a blame of last commit makes little sense unless it's a merge conflict.
    – user12563
    Apr 23, 2019 at 15:42
  • Thanks, you are right that I should've been clearer. I've added more context to the question. I want blame addition overlays so that I can have the most recently added lines marked in the buffer while I work on the code. A simple magit-blame shows me too many commits that end up distracting me more than helping.
    – Daniel
    Apr 23, 2019 at 21:22

1 Answer 1

1

Can I have magit-blame somehow only show the changes introduced with the last commit?

No.

But you can get something similar using the diff-hl package. diff-hl-mode shows an indicator in the fringe for uncommitted changes, diff-hl-flydiff-mode causes that information to be updated on the fly, and diff-hl-amend-mode causes the changes from HEAD to be shown as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.