justingordon
justingordon

Reputation: 12923

Is there functionality in magit, the emacs git add-on, to jump to edits?

In Jetbrains products, like IntelliJ and RubyMine, you can hit F4 in the diff window of a git diff to jump to to the current edit. Is there any functionality in Magit for emacs to go directly to a diff from git?

Upvotes: 1

Views: 173

Answers (1)

phils
phils

Reputation: 73345

Magit does this by default pretty much everywhere. Just hit RET / Enter to jump to the source code for the current diff hunk.

magit-visit-item is the function.

Upvotes: 5

Related Questions