Skip to content

Commit a161728

Browse files
committed
documentation update: getHeadCommit() returns null if branch does not
exists
1 parent 5a09311 commit a161728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Note: null passed as a branch name is considered as Master Branch. Any non-null
116116
- Returns ordered list of `limit` commits (0 is unlimited) starting from commit specified by `firstCommitId` in direction specified by `direction`
117117
- If `firstCommitId` is null then commits are starting at branch `branchName` first commit (for ASC direction) or at head of branch (for DESC direction)
118118
- `VCSCommit getHeadCommit(String branchName)`
119-
- Returns `VCSCommit` instance pointing to the head (last) commit of the branch `branchName`
119+
- Returns `VCSCommit` instance pointing to the head (last) commit of the branch `branchName` or `null` if the requested branch does not exists
120120
- `Boolean fileExists(String branchName, String filePath)`
121121
- Returns true if the file with path `filePath` exists in repository in branch `branchName`, false otherwise
122122
- `VCSTag createTag(String branchName, String tagName, String tagMessage) throws EVCSTagExists`

0 commit comments

Comments
 (0)