Tabnine Logo
GitStore$RefData$Builder.setSymref
Code IndexAdd Tabnine to your IDE (free)

How to use
setSymref
method
in
org.eclipse.jgit.generated.storage.dht.proto.GitStore$RefData$Builder

Best Java code snippets using org.eclipse.jgit.generated.storage.dht.proto.GitStore$RefData$Builder.setSymref (Showing top 4 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
protected Result doLink(String target) throws IOException {
  try {
    RefData.Builder d = RefData.newBuilder(oldData);
    clearRefData(d);
    updateSequence(d);
    d.setSymref(target);
    newData = d.build();
    boolean r = db.ref().compareAndPut(refKey, oldData, newData);
    if (r) {
      getRefDatabase().stored(dstRef.getName(), newData);
      if (getRef().getStorage() == Ref.Storage.NEW)
        return Result.NEW;
      return Result.FORCED;
    } else {
      getRefDatabase().clearCache();
      return Result.LOCK_FAILURE;
    }
  } catch (TimeoutException e) {
    return Result.IO_FAILURE;
  }
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData other) {
 if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDefaultInstance()) return this;
 if (other.hasSequence()) {
  setSequence(other.getSequence());
 }
 if (other.hasSymref()) {
  setSymref(other.getSymref());
 }
 if (other.hasTarget()) {
  mergeTarget(other.getTarget());
 }
 if (other.hasIsPeeled()) {
  setIsPeeled(other.getIsPeeled());
 }
 if (other.hasPeeled()) {
  mergePeeled(other.getPeeled());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
protected Result doLink(String target) throws IOException {
  try {
    RefData.Builder d = RefData.newBuilder(oldData);
    clearRefData(d);
    updateSequence(d);
    d.setSymref(target);
    newData = d.build();
    boolean r = db.ref().compareAndPut(refKey, oldData, newData);
    if (r) {
      getRefDatabase().stored(dstRef.getName(), newData);
      if (getRef().getStorage() == Ref.Storage.NEW)
        return Result.NEW;
      return Result.FORCED;
    } else {
      getRefDatabase().clearCache();
      return Result.LOCK_FAILURE;
    }
  } catch (TimeoutException e) {
    return Result.IO_FAILURE;
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData other) {
 if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDefaultInstance()) return this;
 if (other.hasSequence()) {
  setSequence(other.getSequence());
 }
 if (other.hasSymref()) {
  setSymref(other.getSymref());
 }
 if (other.hasTarget()) {
  mergeTarget(other.getTarget());
 }
 if (other.hasIsPeeled()) {
  setIsPeeled(other.getIsPeeled());
 }
 if (other.hasPeeled()) {
  mergePeeled(other.getPeeled());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
org.eclipse.jgit.generated.storage.dht.protoGitStore$RefData$BuildersetSymref

Popular methods of GitStore$RefData$Builder

  • setIsPeeled
  • setSequence
  • setTarget
  • <init>
  • build
  • buildPartial
  • clearIsPeeled
  • clearPeeled
  • clearSymref
  • clearTarget
  • create
  • getParentForChildren
  • create,
  • getParentForChildren,
  • getPeeled,
  • getPeeledBuilder,
  • getPeeledFieldBuilder,
  • getSequence,
  • getTarget,
  • getTargetBuilder,
  • getTargetFieldBuilder

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reference (javax.naming)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now