Types/LibGit2Sharp.Branch.Types.ps1xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
<?xml version="1.0" encoding="utf-8" ?> <Types> <Type> <Name>LibGit2Sharp.Branch</Name> <Members> <ScriptProperty> <!-- The second-last part of the URL path --> <Name>Owner</Name> <GetScriptBlock> if ($this.RemoteName) { $this.Repository.Network.Remotes[$this.RemoteName].Owner } </GetScriptBlock> </ScriptProperty> <ScriptProperty> <!-- The last path part of the URL path, without the .git extension --> <Name>RepositoryName</Name> <GetScriptBlock> if ($this.RemoteName) { $this.Repository.Network.Remotes[$this.RemoteName].RepositoryName } </GetScriptBlock> </ScriptProperty> <ScriptProperty> <!-- Makes it easier to detect and delete branches deleted on the remote --> <Name>IsGone</Name> <GetScriptBlock> $null -eq $this.Tip </GetScriptBlock> </ScriptProperty> <ScriptProperty> <!-- For pull request titles --> <Name>Title</Name> <GetScriptBlock> [System.Globalization.CultureInfo]::CurrentCulture.TextInfo.ToTitleCase( ($this.FriendlyName -replace '[-_]+', ' ') ) </GetScriptBlock> </ScriptProperty> <AliasProperty> <Name>Name</Name> <ReferencedMemberName>FriendlyName</ReferencedMemberName> </AliasProperty> <AliasProperty> <Name>IsHead</Name> <ReferencedMemberName>IsCurrentRepositoryHead</ReferencedMemberName> </AliasProperty> <AliasProperty> <Name>Status</Name> <ReferencedMemberName>TrackingDetails</ReferencedMemberName> </AliasProperty> </Members> </Type> </Types> |