7 ms·
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
by muxxa 5y 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.
- Aeolun 5y agoWe can probably diff AST’s? Someone just has to build it.