<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,7 +15,7 @@ class LogController &lt; ApplicationController
   
   def index
     params[:path] ||= git.make_local_path(git.paths.first)
-    params[:limit] ||= DEFAULT_LOG_LIMIT
+    params[:limit] ||= git.config[&quot;git-tmbundle.log.limit&quot;] || DEFAULT_LOG_LIMIT 
     path = params[:path]
     # Get the desired revision number
     if File.directory?(git.git_base + path)</diff>
      <filename>Support/app/controllers/log_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,11 @@
-&lt;h1&gt;Config&lt;/h1&gt;
-&lt;form&gt;
-  &lt;table&gt;
+&lt;h1&gt;Git Config&lt;/h1&gt;
+&lt;p&gt;Values are saved when the form-field loses focus.&lt;/p&gt;
+&lt;form onsubmit=&quot;return false&quot;&gt;
+  &lt;table class=&quot;listing&quot;&gt;
     &lt;thead&gt;
       &lt;tr&gt;
-        &lt;th&gt;Global Config&lt;/th&gt;
-&lt;!--        &lt;th&gt;Local Config Config&lt;/th&gt;--&gt;
+        &lt;th&gt;Global&lt;/th&gt;
+        &lt;th&gt;Local&lt;/th&gt;
       &lt;/tr&gt;
     &lt;/thead&gt;
     &lt;tbody&gt;
@@ -12,8 +13,16 @@
         &lt;td&gt;
           Name: &lt;%= content_tag :input, :type =&gt; &quot;text&quot;, :value =&gt; git.config[:global, &quot;user.name&quot;], :onchange =&gt; &quot;dispatch({controller: 'config', action: 'set', scope: 'global', key: 'user.name', value: $F(this)})&quot; %&gt;&lt;br/&gt;
           Email: &lt;%= content_tag :input, :type =&gt; &quot;text&quot;, :value =&gt; git.config[:global, &quot;user.email&quot;], :onchange =&gt; &quot;dispatch({controller: 'config', action: 'set', scope: 'global', key: 'user.email', value: $F(this)})&quot; %&gt;&lt;br/&gt;
+          Log limit: &lt;%= content_tag :input, :type =&gt; &quot;text&quot;, :value =&gt; git.config[:global, &quot;log.limit&quot;] || LogController::DEFAULT_LOG_LIMIT, :onchange =&gt; &quot;dispatch({controller: 'config', action: 'set', scope: 'global', key: 'log.limit', value: $F(this)})&quot; %&gt;&lt;br/&gt;
         &lt;/td&gt;
       &lt;/tr&gt;
+      &lt;tr&gt;
+        &lt;td&gt;
+          Log limit: &lt;%= content_tag :input, :type =&gt; &quot;text&quot;, :value =&gt; git.config[:global, &quot;git-tmbundle.log.limit&quot;], :onchange =&gt; &quot;dispatch({controller: 'config', action: 'set', scope: 'global', key: 'git-tmbundle.log.limit', value: $F(this)})&quot; %&gt;&lt;br/&gt;
+        &lt;/td&gt;
+        &lt;td&gt;
+          Log limit: &lt;%= content_tag :input, :type =&gt; &quot;text&quot;, :value =&gt; git.config[:local, &quot;git-tmbundle.log.limit&quot;], :onchange =&gt; &quot;dispatch({controller: 'config', action: 'set', scope: 'local', key: 'git-tmbundle.log.limit', value: $F(this)})&quot; %&gt;&lt;br/&gt;
+        &lt;/td&gt;
     &lt;/tbody&gt;
   &lt;/table&gt;
 &lt;/form&gt;
\ No newline at end of file</diff>
      <filename>Support/app/views/config/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,13 @@ class SCM::Git::Config &lt; SCM::Git::CommandProxyBase
   def []=(*params)
     value = params.pop
     scope, key = process_keys(params)
-    base.command(*([&quot;config&quot;] + config_args(scope) + [key, value]))
+    args = [&quot;config&quot;] + config_args(scope)
+    if value
+      args += [key, value]
+    else
+      args += [&quot;--unset&quot;, key]
+    end
+    base.command(*args)
   end
   
   protected</diff>
      <filename>Support/lib/commands/config.rb</filename>
    </modified>
    <modified>
      <diff>@@ -32,6 +32,10 @@ describe SCM::Git do
     Git.commands_ran.first.should == [&quot;config&quot;, &quot;--file&quot;, &quot;/base/.git/config&quot;, &quot;remote.origin.url&quot;, &quot;../origin&quot;]
   end
   
+  it &quot;should delete local values when assigning nil&quot; do
+    @git.config[:local, &quot;git-tmbundle.log.limit&quot;] = nil
+    Git.commands_ran.first.should == [&quot;config&quot;, &quot;--file&quot;, &quot;/base/.git/config&quot;, &quot;--unset&quot;, &quot;git-tmbundle.log.limit&quot;]
+  end
   
   it &quot;should allow reading global values&quot; do
     Git.command_response[&quot;config&quot;, &quot;--global&quot;, &quot;remote.origin.url&quot;] = &quot;../origin&quot;</diff>
      <filename>Support/spec/lib/commands/config_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eee924fa15e7e73a53aebe93cc1dd9349ee5b919</id>
    </parent>
    <parent>
      <id>92585e874fcf5f455bdf934be57ed63f25ebd849</id>
    </parent>
  </parents>
  <author>
    <name>Thomas Aylott</name>
    <email>oblivious+git@subtlegradient.com</email>
  </author>
  <url>http://github.com/subtleGradient/git.tmbundle/commit/d412b01401cbcef3609fe89f2843f1eb44f86db0</url>
  <id>d412b01401cbcef3609fe89f2843f1eb44f86db0</id>
  <committed-date>2008-04-12T09:15:25-07:00</committed-date>
  <authored-date>2008-04-12T09:15:25-07:00</authored-date>
  <message>Merge branch 'release' of git://gitorious.org/git-tmbundle/mainline</message>
  <tree>cc62bff28145402da346c999f4cad2469f3ba00b</tree>
  <committer>
    <name>Thomas Aylott</name>
    <email>oblivious+git@subtlegradient.com</email>
  </committer>
</commit>
