Examples of EmptyTypedElement


Examples of org.eclipse.egit.ui.internal.revision.GitCompareFileRevisionEditorInput.EmptyTypedElement

  public static ITypedElement getHeadTypedElement(Repository repository, String repoRelativePath) {
    try {
      Ref head = repository.getRef(Constants.HEAD);
      if (head == null || head.getObjectId() == null)
        // Initial import, not yet a HEAD commit
        return new EmptyTypedElement(""); //$NON-NLS-1$

      RevCommit latestFileCommit;
      RevWalk rw = new RevWalk(repository);
      try {
        RevCommit headCommit = rw.parseCommit(head.getObjectId());
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.