From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.pouillard@gmail.com (Nicolas Pouillard) Date: Fri, 17 Oct 2008 10:55:37 +0200 Subject: [sup-talk] [PATCH] Sort the contents of labels.txt Message-ID: <1224233737-32731-1-git-send-email-nicolas.pouillard@gmail.com> This enable better behaviors when versioning this kind of files. --- lib/sup/label.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.5.5.rc3