When a line of code is submitted to a git repository, its line number may change in future commits, by code being added or removed above it, while fundamentally still being the same line.
Given a permalink for a code-snippet, is there an API that answers the question: Do these lines of code exist in git-revision #12345abc, and if so, what are their line-numbers there (and file-name, because I suppose files can be renamed)?
It feels like this is related to git blame
, but not exactly.