aboutsummaryrefslogtreecommitdiff
path: root/node_modules/simple-git/src/lib/tasks/log.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/simple-git/src/lib/tasks/log.d.ts')
-rw-r--r--node_modules/simple-git/src/lib/tasks/log.d.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/node_modules/simple-git/src/lib/tasks/log.d.ts b/node_modules/simple-git/src/lib/tasks/log.d.ts
new file mode 100644
index 0000000..b4ae73f
--- /dev/null
+++ b/node_modules/simple-git/src/lib/tasks/log.d.ts
@@ -0,0 +1,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 {};