mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-16 01:25:42 -05:00
Changes shortcut keys for diff with previous commands
Adds diff with next command Fixes #45 - Keyboard Shortcut collision with Project Manager Preps v2.11.2
This commit is contained in:
@@ -200,9 +200,11 @@ export class GitLogParserEnricher implements IGitEnricher<IGitLog> {
|
||||
|
||||
if (recentCommit) {
|
||||
recentCommit.previousSha = commit.sha;
|
||||
commit.nextSha = recentCommit.sha;
|
||||
// Only add a filename if this is a file log
|
||||
if (type === 'file') {
|
||||
recentCommit.previousFileName = commit.originalFileName || commit.fileName;
|
||||
commit.nextFileName = recentCommit.originalFileName || recentCommit.fileName;
|
||||
}
|
||||
}
|
||||
recentCommit = commit;
|
||||
|
||||
@@ -108,6 +108,8 @@ export type GitLogType = 'file' | 'repo';
|
||||
export class GitLogCommit extends GitCommit {
|
||||
|
||||
fileStatuses: { status: GitFileStatus, fileName: string }[];
|
||||
nextSha?: string;
|
||||
nextFileName?: string;
|
||||
status: GitFileStatus;
|
||||
|
||||
constructor(
|
||||
@@ -135,6 +137,10 @@ export class GitLogCommit extends GitCommit {
|
||||
this.fileStatuses = [{ status: status, fileName: fileName }];
|
||||
}
|
||||
}
|
||||
|
||||
get nextUri(): Uri {
|
||||
return this.nextFileName ? Uri.file(path.join(this.repoPath, this.nextFileName)) : this.uri;
|
||||
}
|
||||
}
|
||||
|
||||
export interface IGitCommitLine {
|
||||
|
||||
Reference in New Issue
Block a user