Change github diff to be side by side comparison?

后端 未结 6 1631
醉酒成梦
醉酒成梦 2020-12-30 19:22

For github web browsing, it is not shown as side by side as lots of diff tool does. Can I change the diff mode to side by side? I mean on the github web.

6条回答
  •  一整个雨季
    2020-12-30 19:51

    Github web does not have the feature yet.

    You might be interested in term based diff tool cdiff, it has an option -s to yield side-by-side diff.

    To view changes not submitted yet, type

    cdiff -s
    

    To view change history in your workspace, type

    cdiff -ls
    

    To view changes from a pull request, pipe in the raw diff from the url, for example:

    curl https://github.com/ymattw/cdiff/pull/11.diff | cdiff -s
    

提交回复
热议问题