Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

66 lines (60 sloc) 1.962 kb
<?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">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
require ENV['TM_BUNDLE_SUPPORT'] + '/environment.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/osx/plist'
git = Git.new
path = File.expand_path('..', git.git_dir(git.paths.first))
branches = git.branch.list(:all)
parameters = { "branches" =&gt; branches.map { |e| { "name" =&gt; e[:name] } } }
token = open('|"$DIALOG" -a CompareBranches', 'r+') { |io| io &lt;&lt; parameters.to_plist; io.close_write; io.read.chomp }
res = open('|"$DIALOG" -w' + token) { |io| OSX::PropertyList.load(io) }
open('|"$DIALOG" -x' + token) { |io| }
if res &amp;&amp; res['returnArgument']
parent = res['returnArgument'].first['name']
current = res['currentBranch'].first['name']
dispatch(:controller =&gt; "diff", :action =&gt; "diff", :branches =&gt; [parent, current])
end
</string>
<key>input</key>
<string>none</string>
<key>inputFormat</key>
<string>text</string>
<key>name</key>
<string>Compare Branches…</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>requiredCommands</key>
<array>
<dict>
<key>command</key>
<string>git</string>
<key>locations</key>
<array>
<string>/usr/local/git/bin/git</string>
<string>/opt/local/bin/git</string>
<string>/usr/local/bin/git</string>
</array>
<key>variable</key>
<string>TM_GIT</string>
</dict>
</array>
<key>scope</key>
<string>attr.scm.git</string>
<key>semanticClass</key>
<string>action.scm.diff</string>
<key>uuid</key>
<string>E56D4990-B615-4788-A46C-5D0CDE750D56</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
Jump to Line
Something went wrong with that request. Please try again.