Is it possible to reconstruct a word-by-word history in version control? Ideally, I'd like to do is something like 1) I indicate the range of lines of interest, 2) have the program figure out the corresponding line numbers in previous versions, as code often moved up or down between versions (potentially limiting the range of versions, say since revision 19, or since a week ago), 3) print out a word-by-word history, either the versions that groups of words were last changed, or the authors by which groups of words were changed. So it's kind of like svn blame
or git blame
in a word-by-word level.
Failing that, are there tools that can do #1 and #2 above? That is, 1) I indicate the range of lines of interest, 2) have the program figure out the corresponding line numbers in previous versions, 3) the program would print out the history of these lines (when there were changes).
Either svn or git would be really helpful for me.
The high-level function of git blame is the display of author metadata attached to specific committed lines in a file. This is used to examine specific points of a file's history and get context as to who the last author was that modified the line.
From Microsoft Office (Word, Excel, PowerPoint)From the open file, click on the File tab: You will see the current version at the top and previous versions thereafter. Click on a previous version and a new Word window will open with the previous document version.
Annotations for lines modified in the current revision, are marked with bold type and an asterisk. But I think it is important to clarify that this refers to lines modified in the current revision of the file, not the current revision of the repository.
I looked for something like this and ended up hacking up my own solution. You can find it here:
https://github.com/d33tah/wordblame
Basically, it creates a new repository directory in which all spaces are replaced by a newline and unique string signalling that there was a space. Then, "git blame" is executed and the result is reinterpreted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With