public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
show-diff-check is configurable (and defaults to 'no')
timcharper (author)
Mon Aug 25 11:03:48 -0700 2008
commit  f3f63460b0b38b73a52694f6d7682cb100098f37
tree    3bd01367000afad4a118024d611d23c45d942763
parent  303a6ca35f163274bd36b0087b89d64a8d70d57a
...
8
9
10
11
 
12
13
14
...
27
28
29
30
 
31
32
33
...
8
9
10
 
11
12
13
14
...
27
28
29
 
30
31
32
33
0
@@ -8,7 +8,7 @@ class DiffController < ApplicationController
0
     params[:context_lines] = git.config.context_lines if git.config.context_lines
0
     
0
     render("_diff_results", :locals => {
0
- :diff_check_results => git.with_path(params[:git_path]).diff_check(params.filter(:path, :revision, :context_lines, :revisions, :branches, :tags, :since)),
0
+ :diff_check_results => git.config.show_diff_check? ? git.with_path(params[:git_path]).diff_check(params.filter(:path, :revision, :context_lines, :revisions, :branches, :tags, :since)) : [],
0
       :diff_results => git.with_path(params[:git_path]).diff(params.filter(:path, :revision, :context_lines, :revisions, :branches, :tags, :since)),
0
       :git => git.with_path(params[:git_path])
0
     })
0
@@ -27,7 +27,7 @@ class DiffController < ApplicationController
0
     
0
     paths.each do |path|
0
       render("_diff_results", :locals => {
0
- :diff_check_results => git.diff_check(:path => path, :since => "HEAD"),
0
+ :diff_check_results => git.config.show_diff_check? ? git.diff_check(:path => path, :since => "HEAD") : [],
0
         :diff_results => git.diff(:path => path, :since => "HEAD")
0
       })
0
       
...
19
20
21
 
22
23
24
...
19
20
21
22
23
24
25
0
@@ -19,6 +19,7 @@
0
           [],
0
           ["Log limit", "git-tmbundle.log.limit", [:global, :local], {:style => "width: 40px"}],
0
           ["Log context lines", "git-tmbundle.log.context-lines", [:global, :local], {:style => "width: 40px"}],
0
+ ["Show diff check (yes or no)", "git-tmbundle.show-diff-check", [:global, :local], {:style => "width: 40px"}],
0
           [],
0
           ["Gitnub path", "git-tmbundle.gitnub-path", [:global], {:style => "width: 250px"}],
0
         ].each do |label, key, scopes, input_options|
...
22
23
24
 
 
 
 
25
26
27
...
22
23
24
25
26
27
28
29
30
31
0
@@ -22,6 +22,10 @@ class SCM::Git::Config < SCM::Git::CommandProxyBase
0
     self["git-tmbundle.log.limit"] || DEFAULT_LOG_LIMIT
0
   end
0
   
0
+ def show_diff_check?
0
+ %w[yes 1 auto].include?(self["git-tmbundle.show-diff-check"].to_s.downcase.strip)
0
+ end
0
+
0
   def context_lines
0
     self["git-tmbundle.log.context-lines"]
0
   end

Comments

    No one has commented yet.