Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.ObjectReader.open()


    while(mpathsIt.hasNext()) {
      String mpath=mpathsIt.next();
      DirCacheEntry entry = dc.getEntry(mpath);
      FileOutputStream fos = new FileOutputStream(new File(db.getWorkTree(), mpath));
      try {
        or.open(entry.getObjectId()).copyTo(fos);
      } finally {
        fos.close();
      }
      mpathsIt.remove();
    }
View Full Code Here


    while(mpathsIt.hasNext()) {
      String mpath=mpathsIt.next();
      DirCacheEntry entry = dc.getEntry(mpath);
      FileOutputStream fos = new FileOutputStream(new File(db.getWorkTree(), mpath));
      try {
        or.open(entry.getObjectId()).copyTo(fos);
      } finally {
        fos.close();
      }
      mpathsIt.remove();
    }
View Full Code Here

          continue;

        boolean isSubmoduleConfig = path.equals(Constants.DOT_GIT_MODULES);
        ObjectId objectId = updated.get(path);
        if (isSubmoduleConfig) {
          ObjectLoader loader = objectReader.open(objectId);
          byte[] data = loader.getBytes();
          submodulesConfig = data;
        }
        if (processor != null) {
          GitEntry gitEntry = new GitEntry(repository, objectId, pathPrefix, path);
View Full Code Here

    while(mpathsIt.hasNext()) {
      String mpath=mpathsIt.next();
      DirCacheEntry entry = dc.getEntry(mpath);
      FileOutputStream fos = new FileOutputStream(new File(db.getWorkTree(), mpath));
      try {
        or.open(entry.getObjectId()).copyTo(fos);
      } finally {
        fos.close();
      }
      mpathsIt.remove();
    }
View Full Code Here

  public String getDescription() {
    if (objectId == null)
      return null;
    ObjectReader reader = db.newObjectReader();
    try {
      final ObjectLoader loader = reader.open(objectId);
      final StringBuilder sb = new StringBuilder();
      sb.append(refName);
      sb.append('\n');
      sb.append(reader.abbreviate(objectId).name());
      sb.append(" - "); //$NON-NLS-1$
View Full Code Here

    while(mpathsIt.hasNext()) {
      String mpath=mpathsIt.next();
      DirCacheEntry entry = dc.getEntry(mpath);
      FileOutputStream fos = new FileOutputStream(new File(db.getWorkTree(), mpath));
      try {
        or.open(entry.getObjectId()).copyTo(fos);
      } finally {
        fos.close();
      }
      mpathsIt.remove();
    }
View Full Code Here

      if (entry == null)
        continue;
      FileOutputStream fos = new FileOutputStream(new File(
          db.getWorkTree(), mpath));
      try {
        or.open(entry.getObjectId()).copyTo(fos);
      } finally {
        fos.close();
      }
      mpathsIt.remove();
    }
View Full Code Here

            // ZIP entries for directories are optional.
            // Leave them out, mimicking "git archive".
            continue;

          walk.getObjectId(idBuf, 0);
          fmt.putEntry(outa, name, mode, reader.open(idBuf));
        }
      } finally {
        outa.close();
      }
      return out;
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.