public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
log all git commands to log/git.log when debug_mode is set
timcharper (author)
Wed Jun 11 11:20:53 -0700 2008
commit  27932a01fb1d7f0ab4a15f42fe8b1fd4cdd63e6d
tree    7758d5c7dcfd7f594f696c40fc60840b904a338b
parent  f38a24bd4e0b8c6b7a0c6e441442a1eba9141e5a
...
47
48
49
50
 
 
 
51
52
53
...
381
382
383
384
 
385
386
387
...
47
48
49
 
50
51
52
53
54
55
...
383
384
385
 
386
387
388
389
0
@@ -47,7 +47,9 @@ module SCM
0
     end
0
     
0
     def command_str(*args)
0
- %{cd "#{path}" && #{e_sh git} #{args.map{ |arg| e_sh(arg) } * ' '}}
0
+ str = %{cd "#{path}" && #{e_sh git} #{args.map{ |arg| e_sh(arg) } * ' '}}
0
+ logger.error(str) if debug_mode
0
+ str
0
     end
0
 
0
     def command_verbose(*args)
0
@@ -381,7 +383,7 @@ module SCM
0
       @logger ||=
0
         begin
0
           require 'logger'
0
- Logger.new(ROOT + "/git.log")
0
+ Logger.new(ROOT + "/log/git.log")
0
         end
0
     end
0
     

Comments

    No one has commented yet.