Permalink
Browse files

Changes 'Add Files to the Index' to 'Add File to the Index'

Turns out selecting files in the drawer wasn't quite so handy.  Better fit work flow to add the current file to the index (after resolving conflicts)
  • Loading branch information...
1 parent 8906dd0 commit 65e48fdf23a4582c21e277028851b50ebd1bd72a @timcharper committed Aug 11, 2009
Showing with 4 additions and 3 deletions.
  1. +1 −1 Commands/Add files to the index.tmCommand
  2. +3 −2 Support/app/controllers/commit_controller.rb
@@ -12,7 +12,7 @@ dispatch :controller =&gt; "commit", :action =&gt; "add"</string>
<key>input</key>
<string>selection</string>
<key>name</key>
- <string>Add files to the index</string>
+ <string>Add file to the index</string>
<key>output</key>
<string>showAsTooltip</string>
<key>uuid</key>
@@ -24,8 +24,9 @@ def merge_commit
end
def add
- git.add(git.paths)
- puts "Added to the index:\n - " + git.paths.map {|p| git.relative_path_for(p)} * "\n - "
+ file = ENV['TM_FILEPATH']
+ git.add(file)
+ puts "Added '#{git.relative_path_for(file)}' to the index"
exit_show_tool_tip
end

0 comments on commit 65e48fd

Please sign in to comment.