Hmm... My first thought: (Warning: This is more of a "what you should do next", not a "how to solve this now"):
Git has no problem with file renames. So if a given block of text, or chapter, was its own file, then git would only show changes in the block rather than re-orders. But then, you'd need another document that could include all the pieces. Maybe I'm wrong here, but I thought HTML docs can include other HTML docs. So, one HTML doc can be a chapter, and include a bunch of blocks. Another HTML doc can be the book, and include a bunch of chapters. This would let git track changes in the text without complaining heavily about changes in the structure/layout, while still having a file that does track the final layout. On 2017-11-06, at 4:12 PM, Richard Dooling <[email protected]> wrote: > Hello, > > I use git to track changes to large book-length text files, so I am > constantly moving lines, blocks of lines, even whole chapters around. > > It would be quite nice if I could do git diff and see only lines that were > either changed, added, or deleted, but not the lines that were simply moved > to another location in the file. > > I suspect a filter script is what I needed and I'm hoping maybe somebody has > one? > > Thank you for any help. > > Rick Dooling > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. --- Entertaining minecraft videos http://YouTube.com/keybounce -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
