有益なgit statusプロンプトformatter(xonsh.prompt.gitstatus)

有益なgit statusプロンプトフォーマッタ

クラスxonsh.prompt.gitstatus.GitStatus(支店、num_ahead、num_behind、人跡未踏、変更、競合、上演、隠し、操作)

GitStatus(ブランチ、num_ahead、num_behind、untracked、changed、conflicts、staged、stashed、operations)の新しいインスタンスを作成する

count(値) →整数 - 値の出現回数を返す
index(value [、start [、stop ] ] ) →整数 - 最初の値のインデックスを返します。

値が存在しない場合、ValueErrorを発生させます。

branch

フィールド番号0の別名

changed

フィールド番号4の別名

conflicts

フィールド番号5の別名

num_ahead

フィールド番号1の別名

num_behind

フィールド番号2の別名

operations

フィールド番号8の別名

staged

フィールド番号6の別名

stashed

フィールド番号7の別名

untracked

フィールド番号3の別名

xonsh.prompt.gitstatus.gitstatus()[ソース]

ブランチ名、先行コミット数、コミット後の数、未追跡数、変更番号、競合番号、ステージ番号、隠し番号、操作フィールドを持つnamedtupleを返します。

xonsh.prompt.gitstatus.gitstatus_prompt()[ソース]

strを返します。BRANCH | OPERATOR | numbers