From 042bae119286c470816a1b9fa35ff21531f9a4be Mon Sep 17 00:00:00 2001 From: Nicolas Pouillard Date: Fri, 17 Oct 2008 10:55:37 +0200 Subject: [PATCH] Sort the contents of labels.txt This enable better behaviors when versioning this kind of files. --- lib/sup/label.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/label.rb b/lib/sup/label.rb index 716ef98..da14df6 100644 --- a/lib/sup/label.rb +++ b/lib/sup/label.rb @@ -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 -- 2.45.2