本文整理汇总了Java中org.eclipse.jgit.lib.FileMode.TYPE_SYMLINK属性的典型用法代码示例。如果您正苦于以下问题:Java FileMode.TYPE_SYMLINK属性的具体用法?Java FileMode.TYPE_SYMLINK怎么用?Java FileMode.TYPE_SYMLINK使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.jgit.lib.FileMode
的用法示例。
在下文中一共展示了FileMode.TYPE_SYMLINK属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isExistingSymlink
private boolean isExistingSymlink (int fileMode1, int fileModeWorking) {
return (fileModeWorking & FileMode.TYPE_FILE) == FileMode.TYPE_FILE && (fileMode1 & FileMode.TYPE_SYMLINK) == FileMode.TYPE_SYMLINK;
}
示例2: isSymlinkFolder
private boolean isSymlinkFolder (int mHead, boolean isSymlink) {
// it seems symlink to a folder comes as two separate tree entries,
// first has always mWorking set to 0 and is a symlink in index and HEAD
// the other is identified as a new tree
return isSymlink || (mHead & FileMode.TYPE_SYMLINK) == FileMode.TYPE_SYMLINK;
}
示例3: isSymbolLink
public boolean isSymbolLink() {
return (FileMode.TYPE_MASK & mode) == FileMode.TYPE_SYMLINK;
}
示例4: getBlobTypeName
public static String getBlobTypeName(int blobType) {
if (blobType == FileMode.TYPE_FILE)
return "File";
else if (blobType == FileMode.TYPE_GITLINK)
return "Sub module";
else if (blobType == FileMode.TYPE_SYMLINK)
return "Symbol link";
else
return "Folder";
}
示例5: isBlob
private static boolean isBlob(FileMode mode) {
int t = mode.getBits() & FileMode.TYPE_MASK;
return t == FileMode.TYPE_FILE || t == FileMode.TYPE_SYMLINK;
}