https://stackoverflow.com/a/5493663/1172541 explains how you can do a git log command for a file. Is there a way to track how part of a file changed with git log or other git command? (Of course, this would definitely strains git's diff engines, as the length and line numbers of the part changes. git is pretty good at that thing though.)