create a branch this will create a file with commitId content called branch name under the refs/heads directory
(String name, String startPoint)
| 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 | /** |