MCPcopy Create free account
hub / github.com/ReZeroS/git / getObjectAsString

Method getObjectAsString

src/main/java/club/qqtim/context/ZitContext.java:329–333  ·  view source on GitHub ↗
(String hash, String type)

Source from the content-addressed store, hash-verified

327 }
328
329 public static String getObjectAsString(String hash, String type) {
330 String path = ConstantVal.OBJECTS_DIR + "/" + hash;
331 log.debug("get the content of {} file", path);
332 return FileUtil.getFileAsString(path, type);
333 }
334
335 /**
336 * @param path file path

Callers 2

iteratorTreeEntriesMethod · 0.95
callMethod · 0.95

Calls 1

getFileAsStringMethod · 0.95

Tested by

no test coverage detected