<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -369,6 +369,11 @@ module Rake
             Rake::TaskManager.record_task_metadata = true
           }
         ],
+        ['--top-level-dsl', '-X', &quot;Put Rake DSL commands in the top level scope.&quot;,
+          lambda { |value|
+            Rake::DSL.include_in_top_scope
+          }
+        ],
         ['--trace', '-t', &quot;Turn on invoke/execute tracing, enable full backtrace.&quot;,
           lambda { |value|
             options.trace = true</diff>
      <filename>lib/rake/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -125,6 +125,12 @@ module Rake
         Rake.application.add_import(fn)
       end
     end
+
+    # Include the Rake DSL commands in the top level Ruby scope.
+    def self.include_in_top_scope
+      Object.send(:include, Rake::DSL)
+    end
   end
+
 end
   </diff>
      <filename>lib/rake/dsl.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5f74be339b7c14405aefb2b2c326985aaa85161e</id>
    </parent>
  </parents>
  <author>
    <name>Jim Weirich</name>
    <email>jim.weirich@gmail.com</email>
  </author>
  <url>http://github.com/jimweirich/rake/commit/cae4327d49c61f0262da721af70bf9ddefc0cfcb</url>
  <id>cae4327d49c61f0262da721af70bf9ddefc0cfcb</id>
  <committed-date>2009-06-05T11:29:42-07:00</committed-date>
  <authored-date>2009-06-05T11:29:42-07:00</authored-date>
  <message>Added -X option to enable DSL at top level. (option subject to change)</message>
  <tree>11f8a7e6ed290ab2e572b0f118f04f09ee5751bf</tree>
  <committer>
    <name>Jim Weirich</name>
    <email>jim.weirich@gmail.com</email>
  </committer>
</commit>
