Example usage for org.eclipse.jgit.transport AdvertiseRefsHook interface-usage

List of usage examples for org.eclipse.jgit.transport AdvertiseRefsHook interface-usage

Introduction

In this page you can find the example usage for org.eclipse.jgit.transport AdvertiseRefsHook interface-usage.

Usage

From source file com.google.gerrit.server.git.HackPushNegotiateHook.java

/**
 * Advertises part of history to git push clients.
 * <p>
 * This is a hack to work around the lack of negotiation in the
 * send-pack/receive-pack wire protocol.
 * <p>

From source file com.google.gerrit.server.git.ReceiveCommitsAdvertiseRefsHook.java

/** Exposes only the non refs/changes/ reference names. */
public class ReceiveCommitsAdvertiseRefsHook implements AdvertiseRefsHook {
    private static final Logger log = LoggerFactory.getLogger(ReceiveCommitsAdvertiseRefsHook.class);

    private final ReviewDb db;
    private final Provider<InternalChangeQuery> queryProvider;