Github/compare: How to diff two different files (different file names, both in HEAD)?

后端 未结 5 1689
灰色年华
灰色年华 2021-02-06 23:50

Can I use the github /compare to display the difference between two different source files in HEAD?

Here is how I do it on the command line with git d

5条回答
  •  忘掉有多难
    2021-02-07 00:21

    This is a little cheat-y, and you should look into the "premium" options: Hitting a DiffNow endpoint will give you a JSONp callback with the name of a temporary HTML file containing a diff.

    https://www.diffnow.com/EdpProcess.aspx?action=compareUrls&url1=https%3a//raw.githubusercontent.com/RossBencina/Fractorp/master/docs/implementing-tutorial/01-boxed-function-pointers.cpp&url2=https%3a//raw.githubusercontent.com/RossBencina/Fractorp/master/docs/implementing-tutorial/02-raw-actors.cpp
    

提交回复
热议问题