mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 09:35:45 -05:00
Stops repo log from limiting to a single sha
Gets log reverse to work
This commit is contained in:
@@ -154,11 +154,13 @@ export default class Git {
|
||||
const [file, root]: [string, string] = Git.splitPath(Git.normalizePath(fileName), repoPath);
|
||||
|
||||
const params = [...DefaultLogParams, `--follow`];
|
||||
if (maxCount) {
|
||||
if (maxCount && !reverse) {
|
||||
params.push(`-n${maxCount}`);
|
||||
}
|
||||
if (sha) {
|
||||
if (reverse) {
|
||||
params.push(`--reverse`);
|
||||
params.push(`--ancestry-path`);
|
||||
params.push(`${sha}..HEAD`);
|
||||
}
|
||||
else {
|
||||
@@ -192,7 +194,7 @@ export default class Git {
|
||||
params.push(`-n${maxCount}`);
|
||||
}
|
||||
if (sha) {
|
||||
params.push(`${sha}^!`);
|
||||
params.push(sha);
|
||||
}
|
||||
return gitCommand(repoPath, ...params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user