mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-16 01:25:42 -05:00
Adds new command to show quick commit info
This commit is contained in:
@@ -95,7 +95,7 @@ export default class Git {
|
||||
params.push(`-n${maxCount}`);
|
||||
}
|
||||
if (sha) {
|
||||
params.push(`origin..${sha}`);
|
||||
params.push(sha);
|
||||
params.push(`--`);
|
||||
}
|
||||
|
||||
@@ -111,18 +111,21 @@ export default class Git {
|
||||
}
|
||||
if (sha) {
|
||||
params.push(`--follow`);
|
||||
params.push(`origin..${sha}`);
|
||||
params.push(sha);
|
||||
}
|
||||
params.push(`-L ${start},${end}:${file}`);
|
||||
|
||||
return gitCommand(root, ...params);
|
||||
}
|
||||
|
||||
static logRepo(repoPath: string, maxCount?: number) {
|
||||
static logRepo(repoPath: string, sha?: string, maxCount?: number) {
|
||||
const params = [...DefaultLogParams];
|
||||
if (maxCount) {
|
||||
params.push(`-n${maxCount}`);
|
||||
}
|
||||
if (sha) {
|
||||
params.push(`${sha}^!`);
|
||||
}
|
||||
return gitCommand(repoPath, ...params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user