git show commit in beyond compare

后端 未结 6 1705
半阙折子戏
半阙折子戏 2021-02-05 06:46

I would like to see a specific commit in Beyond Compare or any other separate diff tool while viewing it via git show. I tried looking at help of git show/difftool/

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-05 07:33

    I think that git show is based on the tool set in the GIT_PAGER variable. I don't use Beyond Compare but i think that you can try something like this:

    $ GIT_PAGER='bc3' git show 
    

    Maybe you should fill the GIT_PAGER variable with some additional parameter that allows bc3 process the input.

    There are more suitable ways to persist the pager. This question can give you more tips about how to do it.

提交回复
热议问题