From: Nicolas Pouillard Date: Fri, 17 Oct 2008 08:55:37 +0000 (+0200) Subject: Sort the contents of labels.txt X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=042bae119286c470816a1b9fa35ff21531f9a4be;p=sup Sort the contents of labels.txt This enable better behaviors when versioning this kind of files. --- 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