public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/ag:master commit in: /, lib/
Date: Sat, 21 Feb 2015 21:45:08 +0000 (UTC)	[thread overview]
Message-ID: <1424555059.813cbffb98449a5fb5485766e6738d52a30e9f75.robbat2@gentoo> (raw)

commit:     813cbffb98449a5fb5485766e6738d52a30e9f75
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 21:44:19 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 21:44:19 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=813cbffb

Hotfix the Maildir handling to not need our --fix renaming of files.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

---
 ag              |  1 +
 lib/hotfixes.rb | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/ag b/ag
index 20fce8f..742abee 100755
--- a/ag
+++ b/ag
@@ -11,6 +11,7 @@ require_relative 'lib/utils'
 require_relative 'lib/threading'
 require_relative 'lib/rendering'
 require_relative 'lib/storage'
+require_relative 'lib/hotfixes'
 
 $options = OpenStruct.new
 $options.action = nil

diff --git a/lib/hotfixes.rb b/lib/hotfixes.rb
new file mode 100644
index 0000000..2dc8fc9
--- /dev/null
+++ b/lib/hotfixes.rb
@@ -0,0 +1,12 @@
+# Hotfixes for other classes
+
+# If the INFO block contains multiple colons, @info will be wrong.
+class Maildir::Message
+  protected
+  # Sets dir, unique_name, and info based on the key
+  def parse_key(key)
+    @dir, filename = key.split(File::SEPARATOR)
+    @dir = @dir.to_sym
+    @unique_name, @info = filename.split(COLON, 2)
+  end
+end


             reply	other threads:[~2015-02-21 21:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-21 21:45 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-02-23  0:05 [gentoo-commits] proj/ag:master commit in: /, lib/ Alex Legler
2015-02-23  0:05 Alex Legler
2015-02-23 20:59 Alex Legler
2015-02-23 22:44 Robin H. Johnson
2015-02-24  2:00 Robin H. Johnson
2015-02-24  2:17 Robin H. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424555059.813cbffb98449a5fb5485766e6738d52a30e9f75.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox