How to realize a diff function?

后端 未结 5 2034
耶瑟儿~
耶瑟儿~ 2021-02-04 22:49

How can I implement a diff function, such as Stack Overflow\'s question revision history?

5条回答
  •  旧巷少年郎
    2021-02-04 23:27

    I would find the code for the FreeBSD diff utility and use that as the baseline. There's no point in re-inventing wheels when the licence allows for this sort of copying.

提交回复
热议问题