PSGit.formats.ps1xml

<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
<ViewDefinitions>
    <View>
        <Name>Git.Branch</Name>
        <ViewSelectedBy>
            <TypeName>LibGit2Sharp.Branch</TypeName>
            <TypeName>PSGit.Branch</TypeName>
        </ViewSelectedBy>
        <!-- <GroupBy>
            <PropertyName>Result</PropertyName>
            <Label>Result</Label>
        </GroupBy> -->
        <TableControl>
            <TableHeaders>
                <TableColumnHeader>
                    <Label>Branch</Label>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>Tip</Label>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>IsHead</Label>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>IsRemote</Label>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>Remote</Label>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>Ahead</Label>
                    <Width>5</Width>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>Behind</Label>
                    <Width>6</Width>
                </TableColumnHeader>
                <!--
                <TableColumnHeader>
                    <Alignment>Right</Alignment>
                    <Label>Category</Label>
                    <Width>20</Width>
                </TableColumnHeader>
                -->
            </TableHeaders>
            <TableRowEntries>
                <TableRowEntry>
                    <TableColumnItems>
                        <TableColumnItem>
                            <PropertyName>Branch</PropertyName>
                        </TableColumnItem>
                        <TableColumnItem>
                            <ScriptBlock>
                                $_.Tip.ToString().Substring(0,7)
                            </ScriptBlock>
                        </TableColumnItem>
                        <TableColumnItem>
                            <PropertyName>IsHead</PropertyName>
                        </TableColumnItem>
                        <TableColumnItem>
                            <PropertyName>IsRemote</PropertyName>
                        </TableColumnItem>
                        <TableColumnItem>
                            <ScriptBlock>
                                $_.Remote
                            </ScriptBlock>
                        </TableColumnItem>
                        <TableColumnItem>
                            <PropertyName>Ahead</PropertyName>
                        </TableColumnItem>
                        <TableColumnItem>
                            <PropertyName>Behind</PropertyName>
                        </TableColumnItem>
                    </TableColumnItems>
                </TableRowEntry>
            </TableRowEntries>
        </TableControl>
    </View>
    <View>
        <Name>Git.Change</Name>
        <ViewSelectedBy>
            <TypeName>LibGit2Sharp.Branch</TypeName>
            <TypeName>PSGit.FileStatus</TypeName>
        </ViewSelectedBy>
        <!-- <GroupBy>
            <PropertyName>Result</PropertyName>
            <Label>Result</Label>
        </GroupBy> -->
        <TableControl>
            <TableHeaders>
                <TableColumnHeader>
                    <Label>Path</Label>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>Staged</Label>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>Change</Label>
                </TableColumnHeader>
                <TableColumnHeader>
                    <Label>OldPath</Label>
                </TableColumnHeader>
            </TableHeaders>
            <TableRowEntries>
                <TableRowEntry>
                    <TableColumnItems>
                        <TableColumnItem>
                            <PropertyName>Path</PropertyName>
                        </TableColumnItem>
                        <TableColumnItem>
                            <PropertyName>Staged</PropertyName>
                        </TableColumnItem>
                        <TableColumnItem>
                            <PropertyName>Change</PropertyName>
                        </TableColumnItem>
                        <TableColumnItem>
                            <PropertyName>OldPath</PropertyName>
                        </TableColumnItem>
                    </TableColumnItems>
                </TableRowEntry>
            </TableRowEntries>
        </TableControl>
    </View>
</ViewDefinitions>
</Configuration>