Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
ffanyt authored Jan 26, 2023
1 parent 5eb3d0d commit eb1aec8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proj2/gitlet/Repository.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public static void rmBranch(String branchName) {
branchFile = join(BRANCH_DIR, branchName);
branchFile.delete();
}
public static void reset(String commitID) {//要把对应的branch指示的头提前
public static void reset(String commitID) { //要把对应的branch指示的头提前
HEAD = readHEAD();
String fullCommitID = updateBranch(commitID);
updateWorkingdirByCommit(fullCommitID);
Expand Down Expand Up @@ -432,4 +432,7 @@ public static void printError(String words) {
public static String getHEAD() {
return HEAD;
}
public static void merge(String branchName) {

}
}

0 comments on commit eb1aec8

Please sign in to comment.