git revert operation
This commit is contained in:
parent
09b3344bfb
commit
c712dc4566
2 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -222,6 +222,7 @@ export const ServiceOperations = {
|
|||
CLEAN: 'clean',
|
||||
UNDO: 'undo',
|
||||
RESET: 'reset',
|
||||
REVERT: 'revert',
|
||||
COMMIT: 'commit',
|
||||
COMMAND: 'command',
|
||||
BACKGROUND_FETCH: 'backgroundfetch',
|
||||
|
|
Loading…
Reference in a new issue