Skip to content

@pumpkin-plugins/static-hermes-runtime API / hermes/git-status / parseHermesGitStatusPaths

Function: parseHermesGitStatusPaths() ​

parseHermesGitStatusPaths(status): string[]

Defined in: hermes/git-status.ts:11

Parse paths from git status --porcelain=v1 -z output.

Rename and copy records contain both the destination and source paths; both are returned so callers can enforce allowlists against every affected file.

Parameters ​

status ​

string

NUL-delimited Git porcelain status output.

Returns ​

string[]

Changed paths in status order, including both sides of rename and copy records.

Throws ​

If Git returns a malformed or incomplete status record.

pumpkin-plugins documentation