Simon Willison’s Weblog


See the History of a Method with git log -L (via) Neat Git trick from Caleb Hearth that I hadn’t seen before, and it works for Python out of the box:

git log -L

That command displays a log (with diffs) of just the portion of commits that changed the path_with_format function in the file.