Expose 'apply' and 'diff --cached' from git extension API

This commit is contained in:
Rachel Macfarlane
2018-11-13 16:18:18 -08:00
parent 61e117b234
commit ad5f5ea365
4 changed files with 30 additions and 3 deletions

View File

@@ -128,6 +128,8 @@ export interface Repository {
clean(paths: string[]): Promise<void>;
apply(patch: string, reverse?: boolean): Promise<void>;
diff(cached?: boolean): Promise<string>;
diffWithHEAD(path: string): Promise<string>;
diffWith(ref: string, path: string): Promise<string>;
diffIndexWithHEAD(path: string): Promise<string>;