Skip to main content
Version: Next

GitUtils.listChangedFiles()

Home > @backstage/cli-node > GitUtils > listChangedFiles

Returns a sorted list of all files that have changed since the merge base of the provided ref and HEAD, as well as all files that are not tracked by git.

Signature:

static listChangedFiles(ref: string): Promise<string[]>;

Parameters

Parameter

Type

Description

ref

string

**Returns:**

Promise<string[]>