Changes commit type repo to branch

This commit is contained in:
Eric Amodio
2017-03-29 00:43:22 -04:00
parent 9aadf73407
commit 640a11b3cb
4 changed files with 4 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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;