public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
Added config setting to specify how many entries show log should return.
drylight (author)
Tue Apr 08 05:31:35 -0700 2008
timcharper (committer)
Thu Apr 10 15:52:48 -0700 2008
commit  5bd4176e0cc4664128ae6a582361b41a11833537
tree    e2bc93a46413e9697fe29cc256da448ed509208b
parent  aa04583509c908dedcb60cf27a1cf6faf344485f
...
15
16
17
18
 
 
19
20
21
...
15
16
17
 
18
19
20
21
22
0
@@ -15,7 +15,8 @@ class LogController < ApplicationController
0
   
0
   def index
0
     params[:path] ||= git.make_local_path(git.paths.first)
0
- params[:limit] ||= DEFAULT_LOG_LIMIT
0
+ params[:limit] = git.config[:global, "log.limit"]
0
+ params[:limit] ||= DEFAULT_LOG_LIMIT
0
     path = params[:path]
0
     # Get the desired revision number
0
     if File.directory?(git.git_base + path)
...
12
13
14
 
15
16
17
...
12
13
14
15
16
17
18
0
@@ -12,6 +12,7 @@
0
         <td>
0
           Name: <%= content_tag :input, :type => "text", :value => git.config[:global, "user.name"], :onchange => "dispatch({controller: 'config', action: 'set', scope: 'global', key: 'user.name', value: $F(this)})" %><br/>
0
           Email: <%= content_tag :input, :type => "text", :value => git.config[:global, "user.email"], :onchange => "dispatch({controller: 'config', action: 'set', scope: 'global', key: 'user.email', value: $F(this)})" %><br/>
0
+ Log limit: <%= content_tag :input, :type => "text", :value => git.config[:global, "log.limit"] || LogController::DEFAULT_LOG_LIMIT, :onchange => "dispatch({controller: 'config', action: 'set', scope: 'global', key: 'log.limit', value: $F(this)})" %><br/>
0
         </td>
0
       </tr>
0
     </tbody>

Comments

    No one has commented yet.