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

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

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

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

count →整数 - 値の出現回数を返す
indexvalue [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