mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 18:48:45 -05:00
Removes unused data from git log
This commit is contained in:
@@ -13,7 +13,8 @@ export * from './parsers/statusParser';
|
|||||||
|
|
||||||
let git: IGit;
|
let git: IGit;
|
||||||
|
|
||||||
const defaultLogParams = [`log`, `--name-status`, `--full-history`, `-M`, `--date=iso8601-strict`, `--format=%H -%nauthor %an%nauthor-date %ai%ncommitter %cn%ncommitter-date %ci%nparent %P%nsummary %B%nfilename ?`];
|
//`--format=%H -%nauthor %an%nauthor-date %ai%ncommitter %cn%ncommitter-date %ci%nparent %P%nsummary %B%nfilename ?`
|
||||||
|
const defaultLogParams = [`log`, `--name-status`, `--full-history`, `-M`, `--date=iso8601-strict`, `--format=%H -%nauthor %an%nauthor-date %ai%nsummary %B%nfilename ?`];
|
||||||
|
|
||||||
async function gitCommand(cwd: string, ...args: any[]) {
|
async function gitCommand(cwd: string, ...args: any[]) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -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;
|
||||||
@@ -72,9 +72,9 @@ export class GitLogParser {
|
|||||||
// entry.committerDate = lineParts.slice(1).join(' ').trim();
|
// entry.committerDate = lineParts.slice(1).join(' ').trim();
|
||||||
// break;
|
// break;
|
||||||
|
|
||||||
case 'parent':
|
// case 'parent':
|
||||||
entry.parentSha = lineParts.slice(1).join(' ').trim();
|
// entry.parentSha = lineParts.slice(1).join(' ').trim();
|
||||||
break;
|
// break;
|
||||||
|
|
||||||
case 'summary':
|
case 'summary':
|
||||||
entry.summary = lineParts.slice(1).join(' ').trim();
|
entry.summary = lineParts.slice(1).join(' ').trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user