简体   繁体   中英

Use Mergetool in JGit

I want to resolve a merge conflict using a specific mergetool in JGit. On the commandline you would simply do

git mergetool

But I haven't found any way to do this in JGit. Is this functionality supported by JGit? So far I haven't found any questions or bugreports about this. No one seems to be missing this functionality.

我写信给JGit邮件列表,并得到开发人员的答复,他还说JGit尚不支持此功能,但他正在努力在3月之前将其集成。

JGit is a Java-only implementation of Git. If git mergetool was supported, the various native mergetools would need to be included, for each platform on which JGit is possibly executed. I think this is the reason why this is not implemented.

In addition, EGit - probably the primary JGit consumer - uses the Eclipse Compare Editor to resolve conflicts and thus has no need for a mergetool, AFAIK.

Here is a discussion about adding mergetool support to EGit: https://bugs.eclipse.org/bugs/show_bug.cgi?id=356832

If you think this should be implemented in JGit, please file an enhancement request

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM