posh-git v1.0.0-beta1 Release Notes

Release Date: 2018-01-10 // over 6 years ago
  • ✂ Removed

    • ⬇️ Drop support for PowerShell 2.0 (#163) (PR #427)
    • ⬇️ Drop support for PowerShell 3.0 and 4.0 (#328) (PR #513)
    • ✂ Remove public Enable-GitColors, Get-AliasPattern, Get-GitBranch and Invoke-NullCoalescing and its ?? alias (#93) (PR #427)

    🔄 Changed

    • 🔄 Changed the $GitPromptSettings hashtable to a stongly typed object. Here is one example of the impact of this change:
      $GitPromptSettings.LocalWorkingStatusSymbol = '#'
      $GitPromptSettings.LocalWorkingStatusForegroundColor = [ConsoleColor]::DarkRed
    

    Changes to:

      $GitPromptSettings.LocalWorkingStatusSymbol.Text = '#'
      $GitPromptSettings.LocalWorkingStatusSymbol.ForegroundColor = [ConsoleColor]::DarkRed
    
    • 🔄 Changed Write-VcsStatus, Write-GitStatus and Write-Prompt to return a string rather than write to host when the host supports ANSI escape sequences.

    ➕ Added

    • 👍 Implement support for ANSI escape sequences for colored output - support System.ConsoleColor, System.Drawing.HtmlColor (if available on the platform) and 24-bit color. NOTE: this is a breaking change since Write-VcsStatus, Write-GitStatus and Write-Prompt will now return a string rather than write to the host when the host supports ANSI escape sequences. (#304) (#447) (#455)
    • $GitPromptSettings is now a strongly typed object using PS classes (#344) (PR #513)
    • Provide more granular commands than just Write-GitStatus. (#345) (PR #513) We now export the commands that Write-GitStatus uses internally which are:
      • Write-GitBranchName
      • Write-GitBranchStatus
      • Write-GitIndexStatus
      • Write-GitStashCount
      • Write-GitWorkingDirStatus
      • Write-GitWorkingDirStatusSummary

    🛠 Fixed

    • 🛠 Fixed Get-AuthenticodeSignature not on PS Core. (PR #487)
    • 0️⃣ Provide DefaultPromptPrefixColor and DefaultPromptSuffixColor options (#474) (PR #520)
    • 🛠 Fixed posh-git prompt makes PowerShell transcripts less readable (#282) (PR #447)