Examples of PathEdit


Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

    }

    public CommitBuilder add(String path, final RevBlob id)
        throws Exception {
      DirCacheEditor e = tree.editor();
      e.add(new PathEdit(path) {
        @Override
        public void apply(DirCacheEntry ent) {
          ent.setFileMode(FileMode.REGULAR_FILE);
          ent.setObjectId(id);
        }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

              }
            }
          }

          // update index
          dcEditor.add(new PathEdit(path) {
            @Override
            public void apply(DirCacheEntry ent) {
              ent.copyMetaData(dcEntry);
            }
          });
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

              }
            }
          }

          // update index
          dcEditor.add(new PathEdit(path) {
            @Override
            public void apply(DirCacheEntry ent) {
              ent.copyMetaData(dcEntry);
            }
          });
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

        entry.setFileMode(stashIndexIter.getEntryFileMode());
        entry.setObjectId(stashIndexIter.getEntryObjectId());
        DirCacheCheckout.checkoutEntry(repo, file, entry,
            treeWalk.getObjectReader());
        final DirCacheEntry updatedEntry = entry;
        editor.add(new PathEdit(path) {

          public void apply(DirCacheEntry ent) {
            ent.copyMetaData(updatedEntry);
          }
        });
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

          DirCacheEntry indexEntry = dcIter.getDirCacheEntry();
          entry.setLastModified(indexEntry.getLastModified());
          entry.setLength(indexEntry.getLength());
        }

        editor.add(new PathEdit(entry) {

          @Override
          public void apply(DirCacheEntry ent) {
            ent.copyMetaData(entry);
          }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

      final ObjectReader r = repo.getObjectDatabase().newReader();
      try {
        while (startWalk.next()) {
          final ObjectId blobId = startWalk.getObjectId(0);
          final FileMode mode = startWalk.getFileMode(0);
          editor.add(new PathEdit(startWalk.getPathString()) {
            public void apply(DirCacheEntry ent) {
              ent.setObjectId(blobId);
              ent.setFileMode(mode);
              try {
                DirCacheCheckout.checkoutEntry(repo, new File(
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

              entry.setObjectId(inserter.insert(
                  Constants.OBJ_BLOB, contentLength, in));
            } finally {
              in.close();
            }
            wtEdits.add(new PathEdit(entry) {

              public void apply(DirCacheEntry ent) {
                ent.copyMetaData(entry);
              }
            });
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

      final ObjectReader r = repo.getObjectDatabase().newReader();
      try {
        while (startWalk.next()) {
          final ObjectId blobId = startWalk.getObjectId(0);
          final FileMode mode = startWalk.getFileMode(0);
          editor.add(new PathEdit(startWalk.getPathString()) {
            public void apply(DirCacheEntry ent) {
              ent.setObjectId(blobId);
              ent.setFileMode(mode);
              File file = new File(workTree, ent.getPathString());
              File parentDir = file.getParentFile();
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

          DirCacheEntry indexEntry = dcIter.getDirCacheEntry();
          entry.setLastModified(indexEntry.getLastModified());
          entry.setLength(indexEntry.getLength());
        }

        editor.add(new PathEdit(entry) {

          @Override
          public void apply(DirCacheEntry ent) {
            ent.copyMetaData(entry);
          }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheEditor.PathEdit

              }
            }
          }

          // update index
          dcEditor.add(new PathEdit(path) {
            @Override
            public void apply(DirCacheEntry ent) {
              ent.copyMetaData(dcEntry);
            }
          });
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.