mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-12 11:08:34 -05:00
Closes #139 - adds changed files node to repository status
Reworks commit-file nodes
This commit is contained in:
@@ -2,13 +2,26 @@
|
||||
import { ExtensionContext } from 'vscode';
|
||||
import { ResourceType } from './explorerNode';
|
||||
import { GitService, GitStashCommit, IGitStatusFile } from '../gitService';
|
||||
import { CommitFileNode } from './commitFileNode';
|
||||
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);
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user