]> git.cworth.org Git - sup/commitdiff
Sort the contents of labels.txt
authorNicolas Pouillard <nicolas.pouillard@gmail.com>
Fri, 17 Oct 2008 08:55:37 +0000 (10:55 +0200)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 20 Oct 2008 02:39:16 +0000 (19:39 -0700)
This enable better behaviors when versioning this
kind of files.

lib/sup/label.rb

index 716ef98177eb38c74c7e1a905cc6371810e80d23..da14df668b23ec243b62e7dc1473efe385914343 100644 (file)
@@ -78,7 +78,7 @@ class LabelManager
 
   def save
     return unless @modified
-    File.open(@fn, "w") { |f| f.puts @labels.keys }
+    File.open(@fn, "w") { |f| f.puts @labels.keys.sort }
   end
 end