Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 65e48fdf23a4582c21e277028851b50ebd1bd72a 1 parent 8906dd0
@timcharper authored
View
2  Commands/Add files to the index.tmCommand
@@ -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>
View
5 Support/app/controllers/commit_controller.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.