Is there a way to diff files sentence-by-sentence instead of line-by-line?

前端 未结 2 1344
感情败类
感情败类 2021-02-20 13:06

Just trying to get diff to work better for certain kinds of documents. With LaTeX, for example, I might have a long paragraph that is strictly just one line, but I don\'t want t

2条回答
  •  抹茶落季
    2021-02-20 13:46

    Preprocess the files before diffing them. Write a script to write one sentence per line and any line by line diff program will work.

    I have done this on a C token level for diffing C code in order to make absolutely sure my CVS merge was correct.

提交回复
热议问题