diff options
author | James Moger <james.moger@gitblit.com> | 2012-12-06 17:15:05 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-12-06 17:15:05 -0500 |
commit | dab13a996adbfbc4086be6ff96836e590f7d339c (patch) | |
tree | e059aad431d3413b2f3d47327855e5897334c688 /src/com/gitblit/utils | |
parent | f8337b5438043bc3065455d7e3c93f1c3cce93b0 (diff) | |
download | gitblit-dab13a996adbfbc4086be6ff96836e590f7d339c.tar.gz gitblit-dab13a996adbfbc4086be6ff96836e590f7d339c.zip |
Setting to stop a repository from contributing to the activity page
Diffstat (limited to 'src/com/gitblit/utils')
-rw-r--r-- | src/com/gitblit/utils/ActivityUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/gitblit/utils/ActivityUtils.java b/src/com/gitblit/utils/ActivityUtils.java index 80aaebbb..ef3a55e7 100644 --- a/src/com/gitblit/utils/ActivityUtils.java +++ b/src/com/gitblit/utils/ActivityUtils.java @@ -81,6 +81,10 @@ public class ActivityUtils { Map<String, Activity> activity = new HashMap<String, Activity>();
for (RepositoryModel model : models) {
+ if (model.maxActivityCommits == -1) {
+ // skip this repository
+ continue;
+ }
if (model.hasCommits && model.lastChange.after(thresholdDate)) {
if (model.isCollectingGarbage) {
continue;
|