<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Commands/Beautify all changed.tmCommand</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -13,6 +13,13 @@ Run this:
 
 Then select 'Bundles &gt; Bundle Editor &gt; Reload Bundles' from Textmate's menus
 
+## Dependencies
+
+The 'Beautify all changed' command relies on
+
+ - Your project using Git for source control
+ - You installing the Grit gem (sudo gem install mojombo-grit)
+
 ## Credits
 
 This was based on the [ruby beautifier script][rbs] by Paul Lutus and [Beautiful Ruby in Textmate][brit] by Tim Burks</diff>
      <filename>Readme.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@
 
 module RBeautify
 
-  def RBeautify.beautify_string(source, path = &quot;&quot;)
+  def RBeautify.beautify_string(source)
     dest = &quot;&quot;
     previous_line = nil
     line = nil
@@ -40,19 +40,22 @@ module RBeautify
     return dest
   end
 
-  def RBeautify.beautify_file(path)
+  def RBeautify.beautify_file(path, backup = false)
     if(path == '-') # stdin source
       source = STDIN.read
       print beautify_string(source,&quot;stdin&quot;)
     else # named file source
       source = File.read(path)
-      dest = beautify_string(source,path)
+      dest = beautify_string(source)
       if(source != dest)
-        # make a backup copy
-        File.open(path + &quot;~&quot;,&quot;w&quot;) { |f| f.write(source) }
+        if backup
+          # make a backup copy
+          File.open(path + &quot;~&quot;,&quot;w&quot;) { |f| f.write(source) }
+        end
         # overwrite the original
         File.open(path,&quot;w&quot;) { |f| f.write(dest) }
       end
+      return source != dest
     end
   end # beautify_file
 </diff>
      <filename>Support/lib/rbeautify.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,11 @@
 &lt;dict&gt;
 	&lt;key&gt;name&lt;/key&gt;
 	&lt;string&gt;Code Beautifier&lt;/string&gt;
+	&lt;key&gt;ordering&lt;/key&gt;
+	&lt;array&gt;
+		&lt;string&gt;374B6862-84D9-4169-8B42-E090EEF63DC2&lt;/string&gt;
+		&lt;string&gt;B6DE0B79-ECEC-4E9C-AA1F-4619F91A081A&lt;/string&gt;
+	&lt;/array&gt;
 	&lt;key&gt;uuid&lt;/key&gt;
 	&lt;string&gt;00A79803-4522-481E-BE42-B2F96AD2E0D2&lt;/string&gt;
 &lt;/dict&gt;</diff>
      <filename>info.plist</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e9ed06ce5d5fb0fe9bff68584365a0bc9b031934</id>
    </parent>
  </parents>
  <author>
    <name>Joel Chippindale</name>
    <email>joel.chippindale@gmail.com</email>
  </author>
  <url>http://github.com/mocoso/code-beautifier.tmbundle/commit/d8fd1de6a4b779dfd55dd33d78fbcf32bdd0361a</url>
  <id>d8fd1de6a4b779dfd55dd33d78fbcf32bdd0361a</id>
  <committed-date>2008-12-05T20:34:51-08:00</committed-date>
  <authored-date>2008-12-05T20:34:51-08:00</authored-date>
  <message>Added 'Beautify all changed' command</message>
  <tree>4429312953732ab49c4abe38a88ba36d63549bbe</tree>
  <committer>
    <name>Joel Chippindale</name>
    <email>joel.chippindale@gmail.com</email>
  </committer>
</commit>
