Removes I from interface naming of "things"

This commit is contained in:
Eric Amodio
2017-06-09 17:58:42 -04:00
parent eb3b9ad6c9
commit eeff31cf27
29 changed files with 180 additions and 198 deletions

View File

@@ -1,25 +1,25 @@
'use strict';
import { GitCommit, IGitAuthor, IGitCommitLine } from './commit';
import { GitAuthor, GitCommit, GitCommitLine } from './commit';
export interface IGitBlame {
export interface GitBlame {
repoPath: string;
authors: Map<string, IGitAuthor>;
authors: Map<string, GitAuthor>;
commits: Map<string, GitCommit>;
lines: IGitCommitLine[];
lines: GitCommitLine[];
}
export interface IGitBlameLine {
author: IGitAuthor;
export interface GitBlameLine {
author: GitAuthor;
commit: GitCommit;
line: IGitCommitLine;
line: GitCommitLine;
}
export interface IGitBlameLines extends IGitBlame {
allLines: IGitCommitLine[];
export interface GitBlameLines extends GitBlame {
allLines: GitCommitLine[];
}
export interface IGitBlameCommitLines {
author: IGitAuthor;
export interface GitBlameCommitLines {
author: GitAuthor;
commit: GitCommit;
lines: IGitCommitLine[];
lines: GitCommitLine[];
}

View File

@@ -3,30 +3,12 @@ import { Uri } from 'vscode';
import { Git } from '../git';
import * as path from 'path';
export interface IGitAuthor {
export interface GitAuthor {
name: string;
lineCount: number;
}
export interface IGitCommit {
type: GitCommitType;
repoPath: string;
sha: string;
fileName: string;
author?: string;
date: Date;
message: string;
lines: IGitCommitLine[];
originalFileName?: string;
previousSha?: string;
previousFileName?: string;
readonly isUncommitted: boolean;
previousUri: Uri;
uri: Uri;
}
export interface IGitCommitLine {
export interface GitCommitLine {
sha: string;
previousSha?: string;
line: number;
@@ -36,10 +18,10 @@ export interface IGitCommitLine {
export type GitCommitType = 'blame' | 'branch' | 'file' | 'stash';
export class GitCommit implements IGitCommit {
export class GitCommit {
type: GitCommitType;
lines: IGitCommitLine[];
lines: GitCommitLine[];
originalFileName?: string;
previousSha?: string;
previousFileName?: string;
@@ -54,7 +36,7 @@ export class GitCommit implements IGitCommit {
public author: string,
public date: Date,
public message: string,
lines?: IGitCommitLine[],
lines?: GitCommitLine[],
originalFileName?: string,
previousSha?: string,
previousFileName?: string

View File

@@ -1,24 +1,24 @@
'use strict';
export interface IGitDiffLine {
export interface GitDiffLine {
line: string;
state: 'added' | 'removed' | 'unchanged';
}
export interface IGitDiffChunk {
current: (IGitDiffLine | undefined)[];
export interface GitDiffChunk {
current: (GitDiffLine | undefined)[];
currentStart: number;
currentEnd: number;
previous: (IGitDiffLine | undefined)[];
previous: (GitDiffLine | undefined)[];
previousStart: number;
previousEnd: number;
chunk?: string;
}
export interface IGitDiff {
chunks: IGitDiffChunk[];
export interface GitDiff {
chunks: GitDiffChunk[];
diff?: string;
}

View File

@@ -1,11 +1,11 @@
'use strict';
import { Range } from 'vscode';
import { IGitAuthor } from './commit';
import { GitAuthor } from './commit';
import { GitLogCommit } from './logCommit';
export interface IGitLog {
export interface GitLog {
repoPath: string;
authors: Map<string, IGitAuthor>;
authors: Map<string, GitAuthor>;
commits: Map<string, GitLogCommit>;
sha: string | undefined;

View File

@@ -1,6 +1,6 @@
'use strict';
import { Uri } from 'vscode';
import { GitCommit, GitCommitType, IGitCommitLine } from './commit';
import { GitCommit, GitCommitLine, GitCommitType } from './commit';
import { GitStatusFileStatus, IGitStatusFile } from './status';
import * as path from 'path';
@@ -23,7 +23,7 @@ export class GitLogCommit extends GitCommit {
message: string,
status?: GitStatusFileStatus,
fileStatuses?: IGitStatusFile[],
lines?: IGitCommitLine[],
lines?: GitCommitLine[],
originalFileName?: string,
previousSha?: string,
previousFileName?: string

View File

@@ -1,7 +1,7 @@
'use strict';
import { GitStashCommit } from './stashCommit';
export interface IGitStash {
export interface GitStash {
repoPath: string;
commits: Map<string, GitStashCommit>;
}

View File

@@ -1,5 +1,5 @@
'use strict';
import { IGitCommitLine } from './commit';
import { GitCommitLine } from './commit';
import { GitLogCommit } from './logCommit';
import { GitStatusFileStatus, IGitStatusFile } from './status';
@@ -14,7 +14,7 @@ export class GitStashCommit extends GitLogCommit {
message: string,
status?: GitStatusFileStatus,
fileStatuses?: IGitStatusFile[],
lines?: IGitCommitLine[],
lines?: GitCommitLine[],
originalFileName?: string,
previousSha?: string,
previousFileName?: string

View File

@@ -2,7 +2,7 @@
import { Uri } from 'vscode';
import * as path from 'path';
export interface IGitStatus {
export interface GitStatus {
branch: string;
repoPath: string;