Here’s a really useful tip from Wildred Hughes’ Emacs Command of the Day:

Want to know all the commits that affected a function?@magit_emacs as of version 2.13 provides M-x magit-log-trace-definition for this! For any language that git log understands, it will show you all the relevant commits. pic.twitter.com/zo56kLcQAj — Ⓔ Command of the Day (@ecotd) July 7, 2018

It’s just another way of looking at how your code has evolved but it’s one that could be very handy when debugging a problem with a particular function.

It’s sort of like magit-log-buffer-file that I wrote about previously but specialized to a particular function rather than the whole file.