|
|
@ -61,7 +61,11 @@ export class CommitFilesQuickPickItem extends CommandQuickPickItem { |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitFileQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(readonly commit: GitCommit, readonly file: GitFile, picked?: boolean) { |
|
|
|
constructor( |
|
|
|
readonly commit: GitCommit, |
|
|
|
readonly file: GitFile, |
|
|
|
picked?: boolean, |
|
|
|
) { |
|
|
|
super({ |
|
|
|
label: `${pad(getGitFileStatusCodicon(file.status), 0, 2)}${basename(file.path)}`, |
|
|
|
description: getGitFileFormattedDirectory(file, true), |
|
|
@ -123,7 +127,10 @@ export class CommitBrowseRepositoryFromHereCommandQuickPickItem extends CommandQ |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitCompareWithHEADCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(compare-changes) Compare with HEAD'); |
|
|
|
} |
|
|
|
|
|
|
@ -133,7 +140,10 @@ export class CommitCompareWithHEADCommandQuickPickItem extends CommandQuickPickI |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitCompareWithWorkingCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(compare-changes) Compare with Working Tree'); |
|
|
|
} |
|
|
|
|
|
|
@ -143,7 +153,10 @@ export class CommitCompareWithWorkingCommandQuickPickItem extends CommandQuickPi |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitCopyIdQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(copy) Copy SHA'); |
|
|
|
} |
|
|
|
|
|
|
@ -158,7 +171,10 @@ export class CommitCopyIdQuickPickItem extends CommandQuickPickItem { |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitCopyMessageQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(copy) Copy Message'); |
|
|
|
} |
|
|
|
|
|
|
@ -175,7 +191,10 @@ export class CommitCopyMessageQuickPickItem extends CommandQuickPickItem { |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenAllChangesCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(git-compare) Open All Changes'); |
|
|
|
} |
|
|
|
|
|
|
@ -185,7 +204,10 @@ export class CommitOpenAllChangesCommandQuickPickItem extends CommandQuickPickIt |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenAllChangesWithDiffToolCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(git-compare) Open All Changes (difftool)'); |
|
|
|
} |
|
|
|
|
|
|
@ -195,7 +217,10 @@ export class CommitOpenAllChangesWithDiffToolCommandQuickPickItem extends Comman |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenAllChangesWithWorkingCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(git-compare) Open All Changes with Working Tree'); |
|
|
|
} |
|
|
|
|
|
|
@ -205,7 +230,11 @@ export class CommitOpenAllChangesWithWorkingCommandQuickPickItem extends Command |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenChangesCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, private readonly file: string | GitFile, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
private readonly file: string | GitFile, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(git-compare) Open Changes'); |
|
|
|
} |
|
|
|
|
|
|
@ -215,7 +244,11 @@ export class CommitOpenChangesCommandQuickPickItem extends CommandQuickPickItem |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenChangesWithDiffToolCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, private readonly file: string | GitFile, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
private readonly file: string | GitFile, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(git-compare) Open Changes (difftool)'); |
|
|
|
} |
|
|
|
|
|
|
@ -225,7 +258,11 @@ export class CommitOpenChangesWithDiffToolCommandQuickPickItem extends CommandQu |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenChangesWithWorkingCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, private readonly file: string | GitFile, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
private readonly file: string | GitFile, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(git-compare) Open Changes with Working File'); |
|
|
|
} |
|
|
|
|
|
|
@ -235,7 +272,10 @@ export class CommitOpenChangesWithWorkingCommandQuickPickItem extends CommandQui |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenDirectoryCompareCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(git-compare) Open Directory Compare'); |
|
|
|
} |
|
|
|
|
|
|
@ -245,7 +285,10 @@ export class CommitOpenDirectoryCompareCommandQuickPickItem extends CommandQuick |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenDirectoryCompareWithWorkingCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(git-compare) Open Directory Compare with Working Tree'); |
|
|
|
} |
|
|
|
|
|
|
@ -255,7 +298,10 @@ export class CommitOpenDirectoryCompareWithWorkingCommandQuickPickItem extends C |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenDetailsCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(eye) Open Details'); |
|
|
|
} |
|
|
|
|
|
|
@ -265,7 +311,10 @@ export class CommitOpenDetailsCommandQuickPickItem extends CommandQuickPickItem |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenInGraphCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(gitlens-graph) Open in Commit Graph'); |
|
|
|
} |
|
|
|
|
|
|
@ -275,7 +324,10 @@ export class CommitOpenInGraphCommandQuickPickItem extends CommandQuickPickItem |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenFilesCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(files) Open Files'); |
|
|
|
} |
|
|
|
|
|
|
@ -285,7 +337,11 @@ export class CommitOpenFilesCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenFileCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, private readonly file: string | GitFile, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
private readonly file: string | GitFile, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(file) Open File'); |
|
|
|
} |
|
|
|
|
|
|
@ -295,7 +351,10 @@ export class CommitOpenFileCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenRevisionsCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(files) Open Files at Revision'); |
|
|
|
} |
|
|
|
|
|
|
@ -305,7 +364,11 @@ export class CommitOpenRevisionsCommandQuickPickItem extends CommandQuickPickIte |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitOpenRevisionCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, private readonly file: string | GitFile, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
private readonly file: string | GitFile, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? '$(file) Open File at Revision'); |
|
|
|
} |
|
|
|
|
|
|
@ -315,7 +378,11 @@ export class CommitOpenRevisionCommandQuickPickItem extends CommandQuickPickItem |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitApplyFileChangesCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, private readonly file: string | GitFile, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
private readonly file: string | GitFile, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super(item ?? 'Apply Changes'); |
|
|
|
} |
|
|
|
|
|
|
@ -325,7 +392,11 @@ export class CommitApplyFileChangesCommandQuickPickItem extends CommandQuickPick |
|
|
|
} |
|
|
|
|
|
|
|
export class CommitRestoreFileChangesCommandQuickPickItem extends CommandQuickPickItem { |
|
|
|
constructor(private readonly commit: GitCommit, private readonly file: string | GitFile, item?: QuickPickItem) { |
|
|
|
constructor( |
|
|
|
private readonly commit: GitCommit, |
|
|
|
private readonly file: string | GitFile, |
|
|
|
item?: QuickPickItem, |
|
|
|
) { |
|
|
|
super( |
|
|
|
item ?? { |
|
|
|
label: 'Restore', |
|
|
|