Hacker News new | ask | show | jobs
by muxxa 1813 days ago
git log -S'text of interest'

has always served me better than blame. It can better jump file boundaries and find e.g. prior code that the code in question was copied from.

I've always thought though that we need better conflict resolution that is code aware. And also better changeset specification, e.g. if a commit is equivalent to a s/foo/bar/ then this information should be included in the commit, or if a function signature has changed, then record that fact, rather than the dumb line by line diffs.

1 comments

We can probably diff AST’s?

Someone just has to build it.