Skip to content

Commit 78fb8b8

Browse files
committed
refactor
1 parent 310aff4 commit 78fb8b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/scm4j/vcs/GitVCS.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ public GitVCS(IVCSRepositoryWorkspace repo) {
4848
this.repo = repo;
4949
}
5050

51-
public void setCredentials(CredentialsProvider credentials) {
51+
private void setCredentials(CredentialsProvider credentials) {
5252
this.credentials = credentials;
5353
}
5454

5555
private String getRealBranchName(String branchName) {
5656
return branchName == null ? MASTER_BRANCH_NAME : branchName;
5757
}
5858

59-
protected Git getLocalGit(String folder) throws Exception {
59+
Git getLocalGit(String folder) throws Exception {
6060
Repository gitRepo = new FileRepositoryBuilder()
6161
.setGitDir(new File(folder, ".git"))
6262
.build();
@@ -75,7 +75,7 @@ protected Git getLocalGit(String folder) throws Exception {
7575
return new Git(gitRepo);
7676
}
7777

78-
protected Git getLocalGit(IVCSLockedWorkingCopy wc) throws Exception {
78+
Git getLocalGit(IVCSLockedWorkingCopy wc) throws Exception {
7979
return getLocalGit(wc.getFolder().getPath());
8080
}
8181

@@ -368,7 +368,7 @@ public VCSCommit setFileContent(String branchName, String filePath, String conte
368368
}
369369
}
370370

371-
void checkout(Git git, Repository gitRepo, String branchName, String revision) throws Exception {
371+
private void checkout(Git git, Repository gitRepo, String branchName, String revision) throws Exception {
372372
String bn = getRealBranchName(branchName);
373373
CheckoutCommand cmd = git.checkout();
374374
git
@@ -545,7 +545,7 @@ public VCSCommit removeFile(String branchName, String filePath, String commitMes
545545
}
546546
}
547547

548-
protected VCSCommit getVCSCommit(RevCommit revCommit) {
548+
private VCSCommit getVCSCommit(RevCommit revCommit) {
549549
return new VCSCommit(revCommit.getName(), revCommit.getFullMessage(), revCommit.getAuthorIdent().getName());
550550
}
551551

0 commit comments

Comments
 (0)