Package org.eclipse.egit.core.internal.storage

Examples of org.eclipse.egit.core.internal.storage.WorkingTreeFileRevision


      String path) {
    ITypedElement base = getHeadTypedElement(repository, path);
    if (base == null)
      return;
    IFileRevision nextFile;
    nextFile = new WorkingTreeFileRevision(new File(
        repository.getWorkTree(), path));
    String encoding = ResourcesPlugin.getEncoding();
    ITypedElement next = new FileRevisionTypedElement(nextFile, encoding);
    GitCompareFileRevisionEditorInput input = new GitCompareFileRevisionEditorInput(
        next, base, null);
View Full Code Here


            if (file != null)
              left = new LocalFileRevision(file);
            else {
              IPath path = getRepositoryPath().append(
                  repoRelativePath);
              left = new WorkingTreeFileRevision(
                  path.toFile());
            }
          } else {
            left = GitFileRevision
                .inCommit(repository, baseCommit,
View Full Code Here

        IFile file = ResourceUtil.getFileForLocation(location);
        if (!conflicting || useWorkspace) {
          if (file != null)
            rev = new LocalFileRevision(file);
          else
            rev = new WorkingTreeFileRevision(location.toFile());
        } else {
          rev = GitFileRevision.inIndex(repository, gitPath,
              DirCacheEntry.STAGE_2);
        }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.internal.storage.WorkingTreeFileRevision

Copyright © 2018 www.massapicom. 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.