Example usage for org.eclipse.jgit.revwalk RevCommit carry

List of usage examples for org.eclipse.jgit.revwalk RevCommit carry

Introduction

In this page you can find the example usage for org.eclipse.jgit.revwalk RevCommit carry.

Prototype

public void carry(RevFlag flag) 

Source Link

Document

Carry a RevFlag set on this commit to its parents.

Usage

From source file:it.com.atlassian.labs.speakeasy.util.jgit.WalkFetchConnection.java

License:Eclipse Distribution License

private void pushLocalCommit(final RevCommit p) throws MissingObjectException, IOException {
    if (p.has(LOCALLY_SEEN))
        return;/* ww  w .  j  a v  a 2  s  .c o  m*/
    revWalk.parseHeaders(p);
    p.add(LOCALLY_SEEN);
    p.add(COMPLETE);
    p.carry(COMPLETE);
    localCommitQueue.add(p);
}