/** * Obtain the {@link org.eclipse.jgit.lib.FileMode} for the current entry on * the currentHead tree * * @return mode for the current entry of the currentHead tree. * @since 4.3 */ public FileMode getFileMode() { return FileMode.fromBits(currentHead.mode); }
/** * Get the file mode of the current entry. * * @return the file mode of the current entry. */ public FileMode getEntryFileMode() { return FileMode.fromBits(mode); }
FileMode parseFileMode(int ptr, int end) { int tmp = 0; while (ptr < end - 1) { tmp <<= 3; tmp += buf[ptr++] - '0'; } return FileMode.fromBits(tmp); }
/** * Obtain the {@link org.eclipse.jgit.lib.FileMode} for this entry. * * @return the file mode singleton for this entry. */ public FileMode getFileMode() { return FileMode.fromBits(getRawMode()); }
/** * Obtain the {@link org.eclipse.jgit.lib.FileMode} for the current entry. * <p> * Every added tree supplies a mode, even if the tree does not contain the * current entry. In the latter case * {@link org.eclipse.jgit.lib.FileMode#MISSING} is returned. * * @param nth * tree to obtain the mode from. * @return mode for the current entry of the nth tree. */ public FileMode getFileMode(int nth) { return FileMode.fromBits(getRawMode(nth)); }
/** * Obtain the {@link FileMode} for the current entry on the currentHead tree * * @return mode for the current entry of the currentHead tree. * @since 4.3 */ public FileMode getFileMode() { return FileMode.fromBits(currentHead.mode); }
FileMode parseFileMode(int ptr, final int end) { int tmp = 0; while (ptr < end - 1) { tmp <<= 3; tmp += buf[ptr++] - '0'; } return FileMode.fromBits(tmp); }
/** * Obtain the {@link org.eclipse.jgit.lib.FileMode} for the current entry on * the currentHead tree * * @return mode for the current entry of the currentHead tree. * @since 4.3 */ public FileMode getFileMode() { return FileMode.fromBits(currentHead.mode); }
FileMode parseFileMode(int ptr, int end) { int tmp = 0; while (ptr < end - 1) { tmp <<= 3; tmp += buf[ptr++] - '0'; } return FileMode.fromBits(tmp); }
/** * Get the file mode of the current entry. * * @return the file mode of the current entry. */ public FileMode getEntryFileMode() { return FileMode.fromBits(mode); }
/** @return the file mode of the current entry. */ public FileMode getEntryFileMode() { return FileMode.fromBits(mode); }
if (FileMode.fromBits(thisMode).getObjectType() == OBJ_BAD) { throw new CorruptObjectException(MessageFormat.format( JGitText.get().corruptObjectInvalidMode2,
/** * Obtain the {@link FileMode} for this entry. * * @return the file mode singleton for this entry. */ public FileMode getFileMode() { return FileMode.fromBits(getRawMode()); }
/** * Obtain the {@link FileMode} for the current entry. * <p> * Every added tree supplies a mode, even if the tree does not contain the * current entry. In the latter case {@link FileMode#MISSING} is returned. * * @param nth * tree to obtain the mode from. * @return mode for the current entry of the nth tree. */ public FileMode getFileMode(final int nth) { return FileMode.fromBits(getRawMode(nth)); }
/** * Obtain the {@link org.eclipse.jgit.lib.FileMode} for this entry. * * @return the file mode singleton for this entry. */ public FileMode getFileMode() { return FileMode.fromBits(getRawMode()); }
/** * Obtain the {@link org.eclipse.jgit.lib.FileMode} for the current entry. * <p> * Every added tree supplies a mode, even if the tree does not contain the * current entry. In the latter case * {@link org.eclipse.jgit.lib.FileMode#MISSING} is returned. * * @param nth * tree to obtain the mode from. * @return mode for the current entry of the nth tree. */ public FileMode getFileMode(int nth) { return FileMode.fromBits(getRawMode(nth)); }
tw.getRawMode(2)); dce.setFileMode(newMode == FileMode.MISSING.getBits() ? FileMode.REGULAR_FILE : FileMode.fromBits(newMode)); if (mergedFile != null) { dce.setLastModified(
@Override public FileMode getMode() { if (context.getBlobIdent().isFile()) return FileMode.fromBits(context.getBlobIdent().mode); else return FileMode.REGULAR_FILE; }
for (int i = 0; i < cache.getEntryCount(); i++) { final DirCacheEntry ent = cache.getEntry(i); final FileMode mode = FileMode.fromBits(ent.getRawMode()); final int len = ent.getLength(); long lastModified = ent.getLastModified();
dce.setFileMode(newMode == FileMode.MISSING.getBits() ? FileMode.REGULAR_FILE : FileMode.fromBits(newMode)); if (mergedFile != null) { long len = mergedFile.length();