Adds diff info to the active line hover for uncommitted changes

This commit is contained in:
Eric Amodio
2017-05-22 16:16:17 -04:00
parent ff1597d64f
commit 19e523d6e4
6 changed files with 208 additions and 13 deletions

18
src/git/models/diff.ts Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
export interface IGitDiffChunk {
chunk?: string;
original: (string | undefined)[];
originalStart: number;
originalEnd: number;
changes: (string | undefined)[];
changesStart: number;
changesEnd: number;
}
export interface IGitDiff {
diff?: string;
chunks: IGitDiffChunk[];
}

View File

@@ -2,6 +2,7 @@
export * from './blame';
export * from './branch';
export * from './commit';
export * from './diff';
export * from './log';
export * from './logCommit';
export * from './remote';