@ -103,6 +103,8 @@ GitLens provides an unobtrusive blame annotation at the end of the current line,
- Adds a `Compare Line Commit with Previous` command (`gitlens.diffLineWithPrevious`) with a shortcut of `shift+alt+,` to compare the active file/diff with the previous line commit revision
- Adds a `Compare Line Commit with Previous` command (`gitlens.diffLineWithPrevious`) with a shortcut of `shift+alt+,` to compare the active file/diff with the previous line commit revision
- Adds a `Compare File with Revision...` command (`gitlens.diffWithRevision`) to compare the active file with the selected revision of the same file
- Adds a `Compare File with Working Tree` command (`gitlens.diffWithWorking`) with a shortcut of `shift+alt+w` to compare the most recent commit revision of the active file/diff with the working tree
- Adds a `Compare File with Working Tree` command (`gitlens.diffWithWorking`) with a shortcut of `shift+alt+w` to compare the most recent commit revision of the active file/diff with the working tree
- Adds a `Compare Line Commit with Working Tree` command (`gitlens.diffLineWithWorking`) with a shortcut of `alt+w` to compare the commit revision of the active line with the working tree
- Adds a `Compare Line Commit with Working Tree` command (`gitlens.diffLineWithWorking`) with a shortcut of `alt+w` to compare the commit revision of the active line with the working tree
// Create a command to get back to where we are right now
constcurrentCommand=newCommandQuickPickItem({
label:`go back ${GlyphChars.ArrowBack}`,
description:`${Strings.pad(GlyphChars.Dash,2,3)} to history of ${GlyphChars.Space}$(file-text) ${path.basename(pick.commit.fileName)}${gitUri.sha?` from ${GlyphChars.Space}$(git-commit) ${gitUri.shortSha}`:''}`
// Create a command to get back to where we are right now
constcurrentCommand=newCommandQuickPickItem({
label:`go back ${GlyphChars.ArrowBack}`,
description:`${Strings.pad(GlyphChars.Dash,2,3)} to history of ${GlyphChars.Space}$(file-text) ${path.basename(pick.commit.fileName)}${gitUri.sha?` from ${GlyphChars.Space}$(git-commit) ${gitUri.shortSha}`:''}`
@ -36,7 +38,7 @@ export class FileHistoryQuickPick {
Uri.file(uri.fsPath),
Uri.file(uri.fsPath),
{
{
maxCount: 0,
maxCount: 0,
goBackCommand
goBackCommand: options.goBackCommand
}asShowQuickFileHistoryCommandArgs
}asShowQuickFileHistoryCommandArgs
]));
]));
}
}
@ -59,7 +61,7 @@ export class FileHistoryQuickPick {
log: log,
log: log,
maxCount: log.maxCount,
maxCount: log.maxCount,
range: log.range,
range: log.range,
goBackCommand
goBackCommand: options.goBackCommand
}asShowQuickFileHistoryCommandArgs
}asShowQuickFileHistoryCommandArgs
])
])
}asShowQuickFileHistoryCommandArgs
}asShowQuickFileHistoryCommandArgs
@ -67,9 +69,9 @@ export class FileHistoryQuickPick {
}
}
}
}
if(nextPageCommand){
if(options.nextPageCommand){
index++;
index++;
items.splice(0,0,nextPageCommand);
items.splice(0,0,options.nextPageCommand);
}
}
if(log.truncated){
if(log.truncated){
@ -80,8 +82,8 @@ export class FileHistoryQuickPick {
uri,
uri,
{
{
maxCount: log.maxCount,
maxCount: log.maxCount,
goBackCommand,
nextPageCommand
goBackCommand: options.goBackCommand,
nextPageCommand: options.nextPageCommand
}asShowQuickFileHistoryCommandArgs
}asShowQuickFileHistoryCommandArgs
]);
]);
@ -94,7 +96,7 @@ export class FileHistoryQuickPick {
newGitUri(uri,last),
newGitUri(uri,last),
{
{
maxCount: log.maxCount,
maxCount: log.maxCount,
goBackCommand,
goBackCommand: options.goBackCommand,
nextPageCommand: npc
nextPageCommand: npc
}asShowQuickFileHistoryCommandArgs
}asShowQuickFileHistoryCommandArgs
]);
]);
@ -105,54 +107,56 @@ export class FileHistoryQuickPick {
}
}
}
}
constbranch=awaitgit.getBranch(uri.repoPath!);
constcurrentCommand=newCommandQuickPickItem({
label:`go back ${GlyphChars.ArrowBack}`,
description:`${Strings.pad(GlyphChars.Dash,2,3)} to history of ${GlyphChars.Space}$(file-text) ${path.basename(uri.fsPath)}${uri.sha?` from ${GlyphChars.Space}$(git-commit) ${uri.shortSha}`:''}`
},Commands.ShowQuickFileHistory,[
uri,
{
log,
maxCount: log.maxCount,
range: log.range
}asShowQuickFileHistoryCommandArgs
]);
// Only show the full repo option if we are the root
description:`${Strings.pad(GlyphChars.Dash,2,3)} to history of ${GlyphChars.Space}$(file-text) ${path.basename(uri.fsPath)}${uri.sha?` from ${GlyphChars.Space}$(git-commit) ${uri.shortSha}`:''}`
},Commands.ShowQuickFileHistory,[
uri,
{
{
goBackCommand: currentCommand
}asShowQuickCurrentBranchHistoryCommandArgs
]));
}
log,
maxCount: log.maxCount,
range: log.range
}asShowQuickFileHistoryCommandArgs
]);
// Only show the full repo option if we are the root