mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 10:03:15 -05:00
Adds keyboard support to page in repo/file quick picks
This commit is contained in:
@@ -188,13 +188,20 @@ export class Git {
|
||||
return gitCommand(root, ...params);
|
||||
}
|
||||
|
||||
static logRepo(repoPath: string, sha?: string, maxCount?: number) {
|
||||
static logRepo(repoPath: string, sha?: string, maxCount?: number, reverse: boolean = false) {
|
||||
const params = [...DefaultLogParams];
|
||||
if (maxCount) {
|
||||
if (maxCount && !reverse) {
|
||||
params.push(`-n${maxCount}`);
|
||||
}
|
||||
if (sha) {
|
||||
params.push(sha);
|
||||
if (reverse) {
|
||||
params.push(`--reverse`);
|
||||
params.push(`--ancestry-path`);
|
||||
params.push(`${sha}..HEAD`);
|
||||
}
|
||||
else {
|
||||
params.push(sha);
|
||||
}
|
||||
}
|
||||
return gitCommand(repoPath, ...params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user