Skip to content

Commit d02309c

Browse files
authored
Update README.md
1 parent 2e0ac12 commit d02309c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ Note: null passed as a branch name is considered as Master Branch. Any non-null
6363
- Sets proxy parameters if necessary
6464
- `String getRepoUrl()`
6565
- Returns string url of current vcs repository
66-
- `String getFileContent(String branchName, String fileRelativePath, String encoding)`
67-
- Returns file content as a string using `encoding` encoding.
66+
- `String getFileContent(String branchName, String fileRelativePath, String revision)`
67+
- Returns file content as a string using UTF-8 encoding.
6868
- `fileRelativePath` is a path to file within `branchName` branch
69-
- The Head file state is used
70-
- Use `String getFileContent(String branchName, String fileRelativePath)` overload to use UTF-8 encoding by default
69+
- File state at `revision` revision is used. If `revision` is null then Head state is used
7170
- `VCSCommit setFileContent(String branchName, String filePath, String content, String commitMessage)`
7271
- Rewrites a file with path `filePath` within branch `branchName` with content `content` and applies `commitMessage` message to commit
7372
- Creates the file and its parent folders if doesn't exists
@@ -86,6 +85,7 @@ Note: null passed as a branch name is considered as Master Branch. Any non-null
8685
- Returns ordered list of all commits located between commits specified by `firstCommitId` and `untilCommitId` inclusively within branch `branchName`
8786
- If `firstCommitId` is null then all commits until commit specified by `untilCommitId` inclusively are fetched
8887
- If `untilCommitId` is null then all commits starting from commit specified by `firstCommitId` are fetched
88+
- If `firstCommitId` and `untilCommitId` are null then all commits are fetched
8989
- `List<VCSCommit> getCommitsRange(String branchName, String firstCommitId, WalkDirection direction, int limit)`
9090
- Returns ordered list of `limit` commits (0 is unlimited) starting from commit specified by `firstCommitId` in direction specified by `direction`
9191
- If `firstCommitId` is null then commits are starting at branch `branchName` first commit (for ASC direction) or at head of branch (for DESC direction)

0 commit comments

Comments
 (0)