Informative git status prompt formatter (xonsh.prompt.gitstatus)

Informative git status prompt formatter

class xonsh.prompt.gitstatus.GitStatus(branch, num_ahead, num_behind, untracked, changed, deleted, conflicts, staged, stashed, operations)

Create new instance of GitStatus(branch, num_ahead, num_behind, untracked, changed, deleted, conflicts, staged, stashed, operations)

count()
index()

Raises ValueError if the value is not present.

property branch

Alias for field number 0

property changed

Alias for field number 4

property conflicts

Alias for field number 6

property deleted

Alias for field number 5

property num_ahead

Alias for field number 1

property num_behind

Alias for field number 2

property operations

Alias for field number 9

property staged

Alias for field number 7

property stashed

Alias for field number 8

property untracked

Alias for field number 3

xonsh.prompt.gitstatus.gitstatus()[source]

Return namedtuple with fields: branch name, number of ahead commit, number of behind commit, untracked number, changed number, deleted number, conflicts number, staged number, stashed number, operation.

xonsh.prompt.gitstatus.gitstatus_prompt()[source]

Return str BRANCH|OPERATOR|numbers