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

Method iteratorBranchNames

src/main/java/club/qqtim/command/Branch.java:60–66  ·  view source on GitHub ↗

list all branches in the repository

()

Source from the content-addressed store, hash-verified

58 * list all branches in the repository
59 */
60 private List<String> iteratorBranchNames(){
61 final List<RefObject> refObjects = ZitContext.iteratorRefs(ConstantVal.HEADS_PATH);
62 return refObjects.stream()
63 .map(RefObject::getRefName)
64 .map(path -> Paths.get(path).relativize(Paths.get(ConstantVal.HEADS_PATH)).toString())
65 .collect(Collectors.toList());
66 }
67
68
69 /**

Callers 1

runMethod · 0.95

Calls 2

iteratorRefsMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected