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

Method hashObject

src/main/java/club/qqtim/command/HashObject.java:45–47  ·  view source on GitHub ↗
(byte[] fileContents)

Source from the content-addressed store, hash-verified

43 }
44
45 public static String hashObject(byte[] fileContents) {
46 return hashObject(fileContents, ConstantVal.BLOB);
47 }
48
49 /**
50 * get hash of file content and create it with type describe.

Callers 5

getWorkingTreeMethod · 0.95
commitMethod · 0.95
writeTreeRecursiveMethod · 0.95
doHashObjectMethod · 0.95
mergeTreesMethod · 0.95

Calls 3

createFileMethod · 0.95
errorMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected