public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
moved context_lines over to config
timcharper (author)
Thu May 22 11:12:19 -0700 2008
commit  05fbe153859a464d75e3da848671ddd7a8873707
tree    438c91264bd40ce9d132880d57801a06aed6e97c
parent  d1b253bb056d96077e36b8e101c0c838162f025a
...
5
6
7
8
 
9
10
11
...
5
6
7
 
8
9
10
11
0
@@ -5,7 +5,7 @@ class DiffController < ApplicationController
0
     show_diff_title unless params[:layout].to_s=="false"
0
     @rev = params[:rev]
0
     @title = params[:title] || "Uncomitted changes"
0
- params[:context_lines] = git.config["git-tmbundle.log.context-lines"] if git.config["git-tmbundle.log.context-lines"]
0
+ params[:context_lines] = git.config.context_lines if git.config.context_lines
0
     
0
     render("_diff_results", :locals => {
0
       :diff_results => git.with_path(params[:git_path]).diff(params.filter(:path, :revision, :context_lines, :revisions, :branches, :tags, :since)),
...
1
2
3
4
5
6
...
23
24
25
 
 
 
 
26
27
28
...
1
2
 
3
4
5
...
22
23
24
25
26
27
28
29
30
31
0
@@ -1,6 +1,5 @@
0
 class SCM::Git::Config < SCM::Git::CommandProxyBase
0
   DEFAULT_LOG_LIMIT = 100
0
-
0
   def [](*params)
0
     scope, key = process_keys(params)
0
     r = base.command(*(["config"] + config_args(scope) + [key]))
0
@@ -23,6 +22,10 @@ class SCM::Git::Config < SCM::Git::CommandProxyBase
0
     self["git-tmbundle.log.limit"] || DEFAULT_LOG_LIMIT
0
   end
0
   
0
+ def context_lines
0
+ self["git-tmbundle.log.context-lines"]
0
+ end
0
+
0
   protected
0
     def config_args(scope)
0
       case scope.to_s

Comments

    No one has commented yet.