mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 10:58:34 -05:00
Fixes parsing issue with commits with no files
This commit is contained in:
@@ -11,10 +11,10 @@ interface ILogEntry {
|
|||||||
author?: string;
|
author?: string;
|
||||||
authorDate?: string;
|
authorDate?: string;
|
||||||
|
|
||||||
// committer?: string;
|
// committer?: string;
|
||||||
// committerDate?: string;
|
// committerDate?: string;
|
||||||
|
|
||||||
// parentSha?: string;
|
// parentSha?: string;
|
||||||
|
|
||||||
fileName?: string;
|
fileName?: string;
|
||||||
originalFileName?: string;
|
originalFileName?: string;
|
||||||
@@ -86,6 +86,10 @@ export class GitLogParser {
|
|||||||
|
|
||||||
case 'filename':
|
case 'filename':
|
||||||
if (isRepoPath) {
|
if (isRepoPath) {
|
||||||
|
const nextLine = lines[position + 1];
|
||||||
|
// If the next line isn't blank, make sure it isn't starting a new commit
|
||||||
|
if (nextLine && Git.shaRegex.test(nextLine)) continue;
|
||||||
|
|
||||||
position++;
|
position++;
|
||||||
|
|
||||||
let diff = false;
|
let diff = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user