首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Git塔台上使用万花筒2?

如何在Git塔台上使用万花筒2?
EN

Stack Overflow用户
提问于 2012-11-22 04:13:32
回答 5查看 10.8K关注 0票数 15

万花筒2公开测试版本周发布,并获得了合并功能。耶!但是,命令行的用法对用法有些模糊。我想同时使用万花筒和吉特塔,我该怎么做呢?

代码语言:javascript
复制
$ ksdiff --help
usage: ksdiff - send files to Kaleidoscope
command options:                        
  [--wait, -w | --no-wait]              whether to wait for the document to be
                                        closed in Kaleidoscope before exiting

FILE options:
  [--snapshot | --no-snapshot]          whether the file is temporary. this
                                        option will override the heuristics
                                        ksdiff would otherwise use to determine
                                        this state.

commands:
  --merge                               send a merge
                                        implies --wait
    --output OUTPUT                     use OUTPUT as the destination path for
                                        this merge. creates OUTPUT if it does
                                        not exist.
    [--base BASE]                       use BASE as the base content for this
                                        merge. can improve the quality of the
                                        default selections for some merges.
    FILE FILE                           the files to merge

Support docs for external merge tools from Git Tower

EN

回答 5

Stack Overflow用户

回答已采纳

发布于 2012-11-22 04:13:32

从1.4.14开始的更新

Git塔( 1.4.14及以上版本)现在配备了万花筒2集成。下面显示的启动器脚本不应该再使用了,因为它们在万花筒2最终版本中不能正常工作。

当选择Integration > Git merge时,万花筒提供了正确的命令行用法。Git The的正确启动器脚本如下所示:

~/库/应用程序Support/Tower/CompareScripts/kaleidoscope2.sh

代码语言:javascript
复制
#!/bin/sh

LOCAL="$1"
REMOTE="$2"
BASE="$3"
MERGED="$4"

APPLICATION_PATH=/Applications/Kaleidoscope.app
CMD="$APPLICATION_PATH/Contents/MacOS/ksdiff"

"$CMD" --merge --output "$MERGED" --base "$BASE" -- "$LOCAL" --snapshot "$REMOTE" --snapshot

~/库/应用程序Support/Tower/CompareTools.plist

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
    <dict>
        <key>ApplicationIdentifier</key>
        <string>com.blackpixel.kaleidoscope</string>
        <key>ApplicationName</key>
        <string>Kaleidoscope</string>
        <key>DisplayName</key>
        <string>Kaleidoscope</string>
        <key>LaunchScript</key>
        <string>kaleidoscope2.sh</string>
        <key>Identifier</key>
        <string>kaleidoscope2</string>
        <key>SupportsMergeTool</key>
        <true/>
    </dict>
</array>
</plist>
票数 8
EN

Stack Overflow用户

发布于 2013-01-23 10:22:57

如果您使用的是MAS版本的万花筒,则必须手动安装ksdiff工具,以便塔能够启动万花筒。

请在此处下载http://www.kaleidoscopeapp.com/ksdiff2

票数 12
EN

Stack Overflow用户

发布于 2014-12-02 03:17:27

对我来说,缺少的链接是:http://www.kaleidoscopeapp.com/ksdiff2和安装Kaleidosope命令行工具(ksdiff),目前我的“阅读更多”按钮在“万花筒>集成..”没有关联,所以我希望这对其他可能失败的人有所帮助。另一个可能缺少的步骤是安装“塔式>首选项>集成”中的塔式命令行实用程序,从那里您可以转到"Git Config“选项卡,并选择万花筒作为您的比较/合并工具。

票数 10
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13501329

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档