万花筒2公开测试版本周发布,并获得了合并功能。耶!但是,命令行的用法对用法有些模糊。我想同时使用万花筒和吉特塔,我该怎么做呢?
$ 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 mergeSupport docs for external merge tools from Git Tower
发布于 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
#!/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
<?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>发布于 2013-01-23 10:22:57
如果您使用的是MAS版本的万花筒,则必须手动安装ksdiff工具,以便塔能够启动万花筒。
请在此处下载http://www.kaleidoscopeapp.com/ksdiff2
发布于 2014-12-02 03:17:27
对我来说,缺少的链接是:http://www.kaleidoscopeapp.com/ksdiff2和安装Kaleidosope命令行工具(ksdiff),目前我的“阅读更多”按钮在“万花筒>集成..”没有关联,所以我希望这对其他可能失败的人有所帮助。另一个可能缺少的步骤是安装“塔式>首选项>集成”中的塔式命令行实用程序,从那里您可以转到"Git Config“选项卡,并选择万花筒作为您的比较/合并工具。
https://stackoverflow.com/questions/13501329
复制相似问题