mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 01:25:43 -05:00
28 lines
822 B
TypeScript
28 lines
822 B
TypeScript
'use strict';
|
|
import { IGitCommitLine } from './commit';
|
|
import { GitLogCommit } from './logCommit';
|
|
import { GitStatusFileStatus, IGitStatusFile } from './status';
|
|
|
|
export class GitStashCommit extends GitLogCommit {
|
|
|
|
constructor(
|
|
public stashName: string,
|
|
repoPath: string,
|
|
sha: string,
|
|
fileName: string,
|
|
date: Date,
|
|
message: string,
|
|
status?: GitStatusFileStatus,
|
|
fileStatuses?: IGitStatusFile[],
|
|
lines?: IGitCommitLine[],
|
|
originalFileName?: string,
|
|
previousSha?: string,
|
|
previousFileName?: string
|
|
) {
|
|
super('stash', repoPath, sha, fileName, 'You', date, message, status, fileStatuses, lines, originalFileName, previousSha, previousFileName);
|
|
}
|
|
|
|
get shortSha() {
|
|
return this.stashName;
|
|
}
|
|
} |