MCPcopy Create free account
hub / github.com/steveukx/git-js / validateLogFormatConfig

Function validateLogFormatConfig

simple-git/src/lib/tasks/diff.ts:28–42  ·  view source on GitHub ↗
(customArgs: unknown[])

Source from the content-addressed store, hash-verified

26}
27
28export function validateLogFormatConfig(customArgs: unknown[]): EmptyTask | void {
29 const flags = customArgs.filter(isLogFormat);
30
31 if (flags.length > 1) {
32 return configurationErrorTask(
33 `Summary flags are mutually exclusive - pick one of ${flags.join(',')}`
34 );
35 }
36
37 if (flags.length && customArgs.includes('-z')) {
38 return configurationErrorTask(
39 `Summary flag ${flags} parsing is not compatible with null termination option '-z'`
40 );
41 }
42}

Callers 3

stashListTaskFunction · 0.90
logFunction · 0.90
diffSummaryTaskFunction · 0.85

Calls 1

configurationErrorTaskFunction · 0.90

Tested by

no test coverage detected