Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/git-session/services/GitSessionActions

The two things a user can actively ask commit-on-save to do: answer the dirty-tree question, and commit what is pending without waiting for the window.

Cockpit client (features), v0.8. Source: ui/client/features/git-session/services/GitSessionActions.ts.

Functions#

answerDirtyTree()#

answerDirtyTree(answer, remember): Promise<{ error?: string; ok: boolean; }>

Defined in: ui/client/features/git-session/services/GitSessionActions.ts:7

Answer "carry onto this session's branch, or stash?". remember keeps the answer per project.

Parameters#

answer

DirtyAnswer

remember

boolean

Returns#

Promise<{ error?: string; ok: boolean; }>


commitNow()#

commitNow(): Promise<{ error?: string; ok: boolean; }>

Defined in: ui/client/features/git-session/services/GitSessionActions.ts:11

Commit what is pending now — the Commit button in manual, and "don't wait" in coalesce.

Returns#

Promise<{ error?: string; ok: boolean; }>