diff --git a/dev/git.ts b/dev/git.ts index 5aa3e6c68eb2..20eb972339de 100644 --- a/dev/git.ts +++ b/dev/git.ts @@ -165,6 +165,10 @@ const gitGenerators: Record = { }); }, }, + getUnstagedFiles: { + script: "git diff --name-only", + splitOn: "\n", + }, }; const head = { @@ -1268,7 +1272,7 @@ export const completionSpec: Fig.Spec = { name: "commit", isOptional: true, suggestions: [{ name: "HEAD" }], - generators: gitGenerators.commits, + generators: [gitGenerators.commits, gitGenerators.getUnstagedFiles], }, }, {