about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-26 22:22:35 +0000
committerEric Wong <e@80x24.org>2014-04-26 22:22:35 +0000
commit3da6c88f4bdffd2ae83d0c9108e20136c8986a80 (patch)
treeedb1d6a2cc17eece165d9f13c1e704df2c4d638f /lib/PublicInbox/Feed.pm
parent00ebf78d1be09d9328cef47cc229f4f4c30bd69f (diff)
downloadpublic-inbox-3da6c88f4bdffd2ae83d0c9108e20136c8986a80.tar.gz
It's strictly not necessary anymore since
commit fa6168c56bdd1cece178b6b852a9b2cba6ce6ffb
("feed: message must exist in current HEAD to show up")

However it can still save us some unnecessary syscalls and
round-trips to the "git cat-file --batch" process, so it's probably
worth th cost of stuffing it in a hash.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 3b2b7af9..a8578e76 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -156,7 +156,7 @@ sub each_recent_blob {
 
         my $pid = open(my $log, '-|', @cmd) or
                 die('open `'.join(' ', @cmd) . " pipe failed: $!\n");
-        my %deleted;
+        my %deleted; # only an optimization at this point
         my $last;
         my $nr = 0;
         my @commits = ();