Whether the given branch contains the specified SHA.
(branchName: string, sha: string)
| 142 | |
| 143 | /** Whether the given branch contains the specified SHA. */ |
| 144 | hasCommit(branchName: string, sha: string): boolean { |
| 145 | assertValidGitRef(branchName); |
| 146 | assertValidGitRef(sha); |
| 147 | return this.run(['branch', branchName, '--contains', sha]).stdout !== ''; |
| 148 | } |
| 149 | |
| 150 | /** Whether the local repository is configured as shallow. */ |
| 151 | isShallowRepo(): boolean { |
no test coverage detected