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

Method createBranch

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

create a branch this will create a file with commitId content called branch name under the refs/heads directory

(String name, String startPoint)

Source from the content-addressed store, hash-verified

71 * this will create a file with commitId content called branch name under the refs/heads directory
72 */
73 private static void createBranch(String name, String startPoint) {
74 String branch = String.format(ConstantVal.BASE_REFS_HEADS_PATH, name);
75 ZitContext.updateRef(branch, new RefValue(false, startPoint));
76 }
77
78
79 /**

Callers 1

runMethod · 0.95

Calls 1

updateRefMethod · 0.95

Tested by

no test coverage detected