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
commit  6223fb16f30c364c9347c46e42387b64135bb80d
tree    52ea66da6700e2bbe59bc83881827aad9dae402a
parent  6da75f4e0ba71250e3925ef6fb18fdd6f706d442
...
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.