git revert operation

This commit is contained in:
Joao Moreno 2016-08-12 16:16:07 +02:00
parent 09b3344bfb
commit c712dc4566
2 changed files with 2 additions and 1 deletions

View file

@ -661,7 +661,7 @@ export class GitService extends ee.EventEmitter
}
public revertFiles(treeish: string, files?: git.IFileStatus[]): winjs.Promise {
return this.run(git.ServiceOperations.RESET, () => this.raw.revertFiles(treeish, (files || []).map((s) => s.getPath())));
return this.run(git.ServiceOperations.REVERT, () => this.raw.revertFiles(treeish, (files || []).map((s) => s.getPath())));
}
public fetch(): winjs.Promise {

View file

@ -222,6 +222,7 @@ export const ServiceOperations = {
CLEAN: 'clean',
UNDO: 'undo',
RESET: 'reset',
REVERT: 'revert',
COMMIT: 'commit',
COMMAND: 'command',
BACKGROUND_FETCH: 'backgroundfetch',