public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
Use TM_PROJECT_DIRECTORY as last (implicit) fallback option.

For example if asking for paths with "current file" as fallback, and there 
are no selection nor open file, this function would throw an exception. 
For most practical purposes though, it makes sense to then work on the 
project folder.
Allan Odgaard (author)
Tue Mar 25 00:03:19 -0700 2008
timcharper (committer)
Tue Mar 25 08:20:54 -0700 2008
commit  9ceb14655bb05d2983d450f9989ae2ac495e75a4
tree    42edd5cf5b3b67ca4ab16a520b8f37b5fa4d4427
parent  0a7f0ae56f162c9443202f28610071833fb17e21
...
92
93
94
 
 
95
96
97
...
92
93
94
95
96
97
98
99
0
@@ -92,6 +92,8 @@ module SCM
0
         ENV['TM_FILEPATH'].to_a
0
       elsif ENV.has_key?('TM_DIRECTORY')
0
         ENV['TM_DIRECTORY'].to_a
0
+ elsif ENV.has_key?('TM_PROJECT_DIRECTORY')
0
+ ENV['TM_PROJECT_DIRECTORY'].to_a
0
       else
0
         raise "No selected files." # FIXME throw an object with more info
0
       end

Comments

    No one has commented yet.