diff --git a/java/com/google/gerrit/server/git/MergedByPushOp.java b/java/com/google/gerrit/server/git/MergedByPushOp.java index 01d5380fc7..b272cba7a0 100644 --- a/java/com/google/gerrit/server/git/MergedByPushOp.java +++ b/java/com/google/gerrit/server/git/MergedByPushOp.java @@ -45,6 +45,12 @@ import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.revwalk.RevCommit; import org.eclipse.jgit.revwalk.RevWalk; +/** + * Operation to close a change on push. + * + *

When we find a change corresponding to a commit that is pushed to a branch directly, we close + * the change. This class marks the change as merged, and sends out the email notification. + */ public class MergedByPushOp implements BatchUpdateOp { private static final FluentLogger logger = FluentLogger.forEnclosingClass();