Git-diff to HTML

前端 未结 3 1574
耶瑟儿~
耶瑟儿~ 2021-02-09 23:06

I\'m looking for a way to produce HTML files from a git-diff output, preferably using python. I\'ve been looking at http://docs.python.org/library/difflib.html without being abl

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-09 23:21

    Perhaps difr is you what you're looking for. It takes any kind git style diff as an input and produces an HTML version of it that is pretty to similar to what GitHub would give you. (And it embeds an editor for adding some small comments. That might be a little more than what you asked for, but I don't think it gets in the way.)

    https://github.com/wspringer/difr

提交回复
热议问题