| 195 | } |
| 196 | |
| 197 | export interface Repository { |
| 198 | readonly rootUri: Uri; |
| 199 | readonly inputBox: InputBox; |
| 200 | readonly state: RepositoryState; |
| 201 | readonly ui: RepositoryUIState; |
| 202 | |
| 203 | readonly onDidCommit: Event<void>; |
| 204 | |
| 205 | getConfigs(): Promise<{ key: string; value: string }[]>; |
| 206 | getConfig(key: string): Promise<string>; |
| 207 | setConfig(key: string, value: string): Promise<string>; |
| 208 | getGlobalConfig(key: string): Promise<string>; |
| 209 | |
| 210 | getObjectDetails( |
| 211 | treeish: string, |
| 212 | path: string, |
| 213 | ): Promise<{ mode: string; object: string; size: number }>; |
| 214 | detectObjectType( |
| 215 | object: string, |
| 216 | ): Promise<{ mimetype: string; encoding?: string }>; |
| 217 | buffer(ref: string, path: string): Promise<Buffer>; |
| 218 | show(ref: string, path: string): Promise<string>; |
| 219 | getCommit(ref: string): Promise<Commit>; |
| 220 | |
| 221 | add(paths: string[]): Promise<void>; |
| 222 | revert(paths: string[]): Promise<void>; |
| 223 | clean(paths: string[]): Promise<void>; |
| 224 | |
| 225 | apply(patch: string, reverse?: boolean): Promise<void>; |
| 226 | diff(cached?: boolean): Promise<string>; |
| 227 | diffWithHEAD(): Promise<Change[]>; |
| 228 | diffWithHEAD(path: string): Promise<string>; |
| 229 | diffWith(ref: string): Promise<Change[]>; |
| 230 | diffWith(ref: string, path: string): Promise<string>; |
| 231 | diffIndexWithHEAD(): Promise<Change[]>; |
| 232 | diffIndexWithHEAD(path: string): Promise<string>; |
| 233 | diffIndexWith(ref: string): Promise<Change[]>; |
| 234 | diffIndexWith(ref: string, path: string): Promise<string>; |
| 235 | diffBlobs(object1: string, object2: string): Promise<string>; |
| 236 | diffBetween(ref1: string, ref2: string): Promise<Change[]>; |
| 237 | diffBetween(ref1: string, ref2: string, path: string): Promise<string>; |
| 238 | |
| 239 | hashObject(data: string): Promise<string>; |
| 240 | |
| 241 | createBranch(name: string, checkout: boolean, ref?: string): Promise<void>; |
| 242 | deleteBranch(name: string, force?: boolean): Promise<void>; |
| 243 | getBranch(name: string): Promise<Branch>; |
| 244 | getBranches( |
| 245 | query: BranchQuery, |
| 246 | cancellationToken?: CancellationToken, |
| 247 | ): Promise<Ref[]>; |
| 248 | getBranchBase(name: string): Promise<Branch | undefined>; |
| 249 | setBranchUpstream(name: string, upstream: string): Promise<void>; |
| 250 | |
| 251 | getRefs( |
| 252 | query: RefQuery, |
| 253 | cancellationToken?: CancellationToken, |
| 254 | ): Promise<Ref[]>; |
no outgoing calls
no test coverage detected