文件操作 - log.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/simple-git/dist/src/lib/tasks/log.d.ts
编辑文件内容
import type { Options, StringTask } from '../types'; import type { 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?: Options | 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 {};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件