Example usage for org.eclipse.jgit.transport RefSpec expandFromDestination

List of usage examples for org.eclipse.jgit.transport RefSpec expandFromDestination

Introduction

In this page you can find the example usage for org.eclipse.jgit.transport RefSpec expandFromDestination.

Prototype

public RefSpec expandFromDestination(Ref r) 

Source Link

Document

Expand this specification to exactly match a ref.

Usage

From source file:com.google.gerrit.server.git.PushOp.java

License:Apache License

private RefSpec matchDst(final String ref) {
    for (final RefSpec s : config.getPushRefSpecs()) {
        if (s.matchDestination(ref)) {
            return s.expandFromDestination(ref);
        }//w w  w  . j  ava 2  s . c om
    }
    return null;
}

From source file:com.googlesource.gerrit.plugins.replication.PushOne.java

License:Apache License

private RefSpec matchDst(String ref) {
    for (RefSpec s : config.getPushRefSpecs()) {
        if (s.matchDestination(ref)) {
            return s.expandFromDestination(ref);
        }/* w  ww  . j a va  2s  .  co m*/
    }
    return null;
}