Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.TreeEntry


        String path = toPath(file);
        ObjectId blobId = null;
        int modeBits = 0;

        if (tree != null) {
            TreeEntry entry = tree.findBlobMember(path);
            if (entry != null) {
                blobId = entry.getId();
                modeBits = entry.getMode().getBits();
            }
        } else {
            if (index == null)
                index = DirCache.read(repository);
            DirCacheEntry entry = index.getEntry(path);
            if (entry != null) {
                blobId = entry.getObjectId();
                modeBits = entry.getRawMode();
            }
        }
        if (blobId == null)
            throw new FileNotFoundException(path);
        fileMappings.put(RevisionEntry.create(path, blobId, modeBits), destination);
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.lib.TreeEntry

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.