mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-12 02:58:32 -05:00
27 lines
847 B
TypeScript
27 lines
847 B
TypeScript
'use strict';
|
|
import { ExtensionContext } from 'vscode';
|
|
import { ResourceType } from './explorerNode';
|
|
import { GitService, GitStashCommit, IGitStatusFile } from '../gitService';
|
|
import { CommitFileNode, CommitFileNodeDisplayAs } from './commitFileNode';
|
|
|
|
export class StashFileNode extends CommitFileNode {
|
|
|
|
readonly resourceType: ResourceType = 'gitlens:stash-file';
|
|
|
|
constructor(
|
|
readonly status: IGitStatusFile,
|
|
readonly commit: GitStashCommit,
|
|
readonly context: ExtensionContext,
|
|
readonly git: GitService
|
|
) {
|
|
super(status, commit, context, git, CommitFileNodeDisplayAs.File);
|
|
}
|
|
|
|
protected getCommitTemplate() {
|
|
return this.git.config.gitExplorer.stashFormat;
|
|
}
|
|
|
|
protected getCommitFileTemplate() {
|
|
return this.git.config.gitExplorer.stashFileFormat;
|
|
}
|
|
} |