List of usage examples for org.eclipse.jgit.lib Constants encode
public static byte[] encode(String str)
From source file:org.kuali.student.git.model.tree.JGitTreeData.java
License:Educational Community License
private byte[] getByteName(String name, FileMode fileMode) { StringBuilder nameBuilder = new StringBuilder(name); if (fileMode == FileMode.TREE) nameBuilder.append("/"); return Constants.encode(nameBuilder.toString()); }