bindMessageFile method
Returns a copy with messageFile set from hook args.
Implementation
CommitMsgHook bindMessageFile(String? path) {
final resolved = path ?? messageFile;
if (verbose) {
return CommitMsgHook.verbose(
tasks: tasks,
messageFile: resolved,
diffArgs: diffArgs,
diffFilters: diffFilters,
runInParallel: runInParallel,
);
}
return CommitMsgHook(
tasks: tasks,
messageFile: resolved,
diffArgs: diffArgs,
diffFilters: diffFilters,
runInParallel: runInParallel,
);
}