diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-04 21:24:59 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-04 21:54:44 +0000 |
commit | 678fb3c2ba03a4a284620c039717c0d94dd6106a (patch) | |
tree | 29b213f82977aa3ccf83d0fc80d8b126b583fb45 /lib/PublicInbox/Msgmap.pm | |
parent | b4d127cb83230fe5cee0dcecb573107ad96a7c4c (diff) | |
download | public-inbox-678fb3c2ba03a4a284620c039717c0d94dd6106a.tar.gz |
This is important for people running mirrors via "git fetch", as they need to be kept up-to-date. Purging is also now supported in mirrors. The short-lived "--regenerate" option is gone and is now implicitly enabled as a result. It's still cheap when article number regeneration is unnecessary, as we track the range for each git repository.
Diffstat (limited to 'lib/PublicInbox/Msgmap.pm')
-rw-r--r-- | lib/PublicInbox/Msgmap.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm index c6a73155..5c37e169 100644 --- a/lib/PublicInbox/Msgmap.pm +++ b/lib/PublicInbox/Msgmap.pm @@ -92,6 +92,11 @@ sub last_commit { $self->meta_accessor('last_commit', $commit); } +sub last_commit_n { + my ($self, $i, $commit) = @_; + $self->meta_accessor('last_commit'.$i, $commit); +} + sub created_at { my ($self, $second) = @_; $self->meta_accessor('created_at', $second); |