@@ -48,15 +48,15 @@ public GitVCS(IVCSRepositoryWorkspace repo) {
48
48
this .repo = repo ;
49
49
}
50
50
51
- public void setCredentials (CredentialsProvider credentials ) {
51
+ private void setCredentials (CredentialsProvider credentials ) {
52
52
this .credentials = credentials ;
53
53
}
54
54
55
55
private String getRealBranchName (String branchName ) {
56
56
return branchName == null ? MASTER_BRANCH_NAME : branchName ;
57
57
}
58
58
59
- protected Git getLocalGit (String folder ) throws Exception {
59
+ Git getLocalGit (String folder ) throws Exception {
60
60
Repository gitRepo = new FileRepositoryBuilder ()
61
61
.setGitDir (new File (folder , ".git" ))
62
62
.build ();
@@ -75,7 +75,7 @@ protected Git getLocalGit(String folder) throws Exception {
75
75
return new Git (gitRepo );
76
76
}
77
77
78
- protected Git getLocalGit (IVCSLockedWorkingCopy wc ) throws Exception {
78
+ Git getLocalGit (IVCSLockedWorkingCopy wc ) throws Exception {
79
79
return getLocalGit (wc .getFolder ().getPath ());
80
80
}
81
81
@@ -368,7 +368,7 @@ public VCSCommit setFileContent(String branchName, String filePath, String conte
368
368
}
369
369
}
370
370
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 {
372
372
String bn = getRealBranchName (branchName );
373
373
CheckoutCommand cmd = git .checkout ();
374
374
git
@@ -545,7 +545,7 @@ public VCSCommit removeFile(String branchName, String filePath, String commitMes
545
545
}
546
546
}
547
547
548
- protected VCSCommit getVCSCommit (RevCommit revCommit ) {
548
+ private VCSCommit getVCSCommit (RevCommit revCommit ) {
549
549
return new VCSCommit (revCommit .getName (), revCommit .getFullMessage (), revCommit .getAuthorIdent ().getName ());
550
550
}
551
551
0 commit comments