从git-gui调用外部difftool? [英] Invoking external difftool from git-gui?

查看:241
本文介绍了从git-gui调用外部difftool?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经配置了p4merge,这样,如果我执行"git difftool ...",则可以从命令行中正确打开外部diff工具.

I have p4merge configured so that from the command line if I do a "git difftool ... " then the external diff tool opens up correctly.

我想从"git gui"而不是命令行打开外部difftool.这可能吗?

I would like to open the external difftool from "git gui" instead of the command line. Is this possible?

似乎git-gui允许添加一种工具.但是我不清楚如何使它工作.有指针吗?

Is seems git-gui allows one to add a tool. But it is unclear to me how to get it working. Any pointers?

推荐答案

如果已经设置了git difftool,则可以为其添加一个项:

If you already have git difftool set up you can add an item for it:


添加工具"对话框的转录内容:

Add Tool dialog transcription:

Tool Details box:
    Name: difftool
    Command: git difftool $FILENAME

Show a dialog before running: unchecked
    Ask the user to select a revision (sets $REVISION): unchecked
    Ask the user for additional arguments (sets $ARGS): unchecked

Don't show the command output window: checked
Run only if a diff is selected ($FILENAME not empty): checked
  Add globally: checked

但是,它不是超级有用,因为似乎没有一种方法可以为其分配热键或双击操作.

Not super-useful though, since there doesn't seem to be a way to assign a hotkey or double-click action to it.

如果 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆