Display Plastic SCM information when in a plastic repository. Also works for subfolders.
For maximum compatibility, make sure your
cm executable is up-to-date
(when branch or status information is incorrect for example).
Local changes can also be displayed which uses the following syntax (see
.Status property below):
If you want to use the icon of Plastic SCM in the segment, then please help me push the icon in this issue
by leaving a like!
string- A go text/template template extended with sprig utilizing the properties below - defaults to empty.
As doing multiple
cm calls can slow down the prompt experience, we do not fetch information by default.
You can set the following property to
true to enable fetching additional information (and populate the template).
boolean- fetch the local changes - defaults to
string- the icon to use in front of the git branch name - defaults to
bool- display the full branch path: /main/fix-001 instead of fix-001 - defaults to
int- the max length for the displayed branch name where
0implies full length - defaults to
string- the icon to display when a branch name is truncated - defaults to empty
string- icon/text to display before the commit context (detached HEAD) - defaults to
string- icon/text to display before the tag context - defaults to
string- the current selector context (branch/changeset/label)
bool- the current workspace is behind and changes are incoming
PlasticStatus- changes in the workspace (see below)
bool- if a merge is pending and needs to be commited
(kown issue: when no file is left after a Change/Delete conflict merge, the
MergePendingproperty is not set)
int- number of unmerged changes
int- number of deleted changes
int- number of added changes
int- number of modified changes
int- number of moved changes
boolean- if the status contains changes or not
string- a string representation of the changes above