mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-16 09:35:40 -05:00
Changes commit type repo to branch
This commit is contained in:
@@ -34,7 +34,7 @@ export interface IGitCommitLine {
|
||||
code?: string;
|
||||
}
|
||||
|
||||
export type GitCommitType = 'blame' | 'file' | 'repo' | 'stash';
|
||||
export type GitCommitType = 'blame' | 'branch' | 'file' | 'stash';
|
||||
|
||||
export class GitCommit implements IGitCommit {
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ export class GitLogParser {
|
||||
break;
|
||||
|
||||
case 'filename':
|
||||
if (type === 'repo') {
|
||||
if (type === 'branch') {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user