public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
when merging, give an option to merge from remote branches
timcharper (author)
Tue Mar 11 17:10:46 -0700 2008
commit  1416ac69862c5d9c58747cfa9a01737bd3e44586
tree    37fab3b722315ab77301fbc280c95ba4450beedc
parent  26de3c6734e9ce806d1112daadc4ed5903849f60
...
67
68
69
70
 
71
72
73
...
67
68
69
 
70
71
72
73
0
@@ -67,7 +67,7 @@ class BranchController < ApplicationController
0
   def merge
0
     # prompt for which branch to merge from
0
     c_branch = git.branch.current_name
0
- all_branches = git.branch.list_names - [c_branch]
0
+ all_branches = git.branch.list_names(:remote) - [c_branch]
0
     all_branches << "" # keep the dialog from auto-selecting if there's only one other branch
0
     merge_from_branch = TextMate::UI.request_item(:title => "Merge", :prompt => "Merge which branch into '#{c_branch}':", :items => all_branches)
0
 
...
32
33
34
35
36
37
38
...
50
51
52
53
 
54
55
56
...
32
33
34
 
35
36
37
...
49
50
51
 
52
53
54
55
0
@@ -32,7 +32,6 @@ class SCM::Git::Branch < SCM::Git::SubmoduleBase
0
     when :all then params << "-a"
0
     when :remote then params << "-r"
0
     end
0
-
0
     result = base.command("branch", *params).split("\n").map { |e| { :name => e[2..-1], :default => e[0..1] == '* ' } }
0
     if options[:remote_name]
0
       r_prefix = remote_branch_prefix(options[:remote_name])
0
@@ -50,7 +49,7 @@ class SCM::Git::Branch < SCM::Git::SubmoduleBase
0
   end
0
   
0
   def current_name
0
- current[:name]
0
+ current && current[:name]
0
   end
0
 
0
   def remote_branch_prefix(remote_name)

Comments

    No one has commented yet.