Package org.eclipse.jgit.revwalk

Examples of org.eclipse.jgit.revwalk.RevWalk.release()


        {
            return walk.parseCommit(branch);
        }
        finally
        {
            walk.release();
        }
    }

    public static boolean localBranchExists(Git git, String branchName) throws GitAPIException
    {
View Full Code Here


        }
        finally
        {
            if (null != walk)
            {
                walk.release();
            }
        }

        return new JGitFlow(git, gfConfig);
    }
View Full Code Here

        return getRef((String) resolved).getLeaf().getObjectId();
      } else {
        return (ObjectId) resolved;
      }
    } finally {
      rw.release();
    }
  }

  /**
   * Simplify an expression, but unlike {@link #resolve(String)} it will not
View Full Code Here

          return (String) resolved;
        else
          return ((AnyObjectId) resolved).getName();
      return null;
    } finally {
      rw.release();
    }
  }

  private Object resolve(final RevWalk rw, final String revstr)
      throws IOException {
View Full Code Here

        throw new JGitInternalException(
            MessageFormat.format(
            JGitText.get().cannotReadCommit, commitId.toString()),
            e);
      } finally {
        rw.release();
      }

      if (!filepaths.isEmpty()) {
        // reset [commit] -- paths
        resetIndexForPaths(commit);
View Full Code Here

      }
      return result;
    } catch (IOException ioe) {
      throw new JGitInternalException(ioe.getMessage(), ioe);
    } finally {
      revWalk.release();
    }
  }

  private ObjectId getStartPoint() throws AmbiguousObjectException,
      RefNotFoundException, IOException {
View Full Code Here

      } finally {
        treeWalk.release();
      }
    } finally {
      dc.unlock();
      revWalk.release();
    }
    return this;
  }

  private void checkoutPathsFromIndex(TreeWalk treeWalk, DirCache dc)
View Full Code Here

        }
        refs.put(name, new ObjectIdRef.Unpeeled(Ref.Storage.PACKED,
            name, id));
      }
    } finally {
      rw.release();
      br.close();
    }
    return refs;
  }
}
View Full Code Here

        }
        finally
        {
            if (null != walk)
            {
                walk.release();
            }

            reporter.endCommand();
        }
View Full Code Here

        }
        finally
        {
            if (null != walk)
            {
                walk.release();
            }
        }
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.