aboutsummaryrefslogtreecommitdiff
path: root/node_modules/simple-git/src/lib/tasks/log.d.ts
blob: b4ae73f7bdac5b50c9648af1b77cc8bb78a2c794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { Options, StringTask } from '../types';
import { LogResult, SimpleGit } from '../../../typings';
export interface DefaultLogFields {
    hash: string;
    date: string;
    message: string;
    refs: string;
    body: string;
    author_name: string;
    author_email: string;
}
export declare type LogOptions<T = DefaultLogFields> = {
    file?: string;
    format?: T;
    from?: string;
    mailMap?: boolean;
    maxCount?: number;
    multiLine?: boolean;
    splitter?: string;
    strictDate?: boolean;
    symmetric?: boolean;
    to?: string;
};
interface ParsedLogOptions {
    fields: string[];
    splitter: string;
    commands: string[];
}
export declare function parseLogOptions<T extends Options>(opt?: LogOptions<T>, customArgs?: string[]): ParsedLogOptions;
export declare function logTask<T>(splitter: string, fields: string[], customArgs: string[]): StringTask<LogResult<T>>;
export default function (): Pick<SimpleGit, 'log'>;
export {};