From 11c9cd0063b96b6e4a78313293bf3663c1a8171f Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 09:11:14 -0700 Subject: [PATCH 01/52] feat: `git.status.get_Ahead` ( Fixes #358 ) --- Types/git.status/get_Ahead.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Types/git.status/get_Ahead.ps1 diff --git a/Types/git.status/get_Ahead.ps1 b/Types/git.status/get_Ahead.ps1 new file mode 100644 index 00000000..59a78118 --- /dev/null +++ b/Types/git.status/get_Ahead.ps1 @@ -0,0 +1,11 @@ +<# +.SYNOPSIS + Gets the commits ahead +.DESCRIPTION + Gets the number of commits ahead of the remote branch. +#> +if ($GitStatus.Status -match 'ahead') { + $gitStatus.Status -replace '\D' -as [int] +} else { + 0 +} \ No newline at end of file From 791ab84015408e90e79a165594b579ce22f22867 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 09:12:01 -0700 Subject: [PATCH 02/52] feat: `git.status.get_Behind` ( Fixes #359 ) --- Types/git.status/get_Behind.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Types/git.status/get_Behind.ps1 diff --git a/Types/git.status/get_Behind.ps1 b/Types/git.status/get_Behind.ps1 new file mode 100644 index 00000000..ae23a02a --- /dev/null +++ b/Types/git.status/get_Behind.ps1 @@ -0,0 +1,11 @@ +<# +.SYNOPSIS + Gets the commits behind +.DESCRIPTION + Gets the number of commits behind the remote branch. +#> +if ($GitStatus.Status -match 'behind') { + @($gitStatus.Status -replace '[\D-[,]]','' -split ',',2)[0] -as [int] +} else { + 0 +} From 4410badde93d7a116f2730b16e9afbf0b8181fdb Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 09:13:44 -0700 Subject: [PATCH 03/52] feat: `git.status.get_Modified` ( Fixes #356 ) --- Types/git.status/get_Modified.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Types/git.status/get_Modified.ps1 diff --git a/Types/git.status/get_Modified.ps1 b/Types/git.status/get_Modified.ps1 new file mode 100644 index 00000000..a7fe470f --- /dev/null +++ b/Types/git.status/get_Modified.ps1 @@ -0,0 +1,11 @@ +<# +.SYNOPSIS + Gets modified files +.DESCRIPTION + Gets unstaged modified files +#> +@(foreach ($unstaged in $this.Unstaged) { + if ($unstaged.ChangeType -eq 'modified') { + $unstaged.File + } +}) \ No newline at end of file From 1fcdc8f1faa9f105bc2a59c12defe53538414f0e Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 09:15:13 -0700 Subject: [PATCH 04/52] feat: `git.status.get_Deleted` ( Fixes #357 ) --- Types/git.status/get_Deleted.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Types/git.status/get_Deleted.ps1 diff --git a/Types/git.status/get_Deleted.ps1 b/Types/git.status/get_Deleted.ps1 new file mode 100644 index 00000000..9e6b4203 --- /dev/null +++ b/Types/git.status/get_Deleted.ps1 @@ -0,0 +1,11 @@ +<# +.SYNOPSIS + Gets deleted paths +.DESCRIPTION + Gets unstaged deleted paths. +#> +@(foreach ($unstaged in $this.Unstaged) { + if ($unstaged.ChangeType -eq 'deleted') { + $unstaged.Path + } +}) \ No newline at end of file From 68173e2618f6e10e0dab81b5db7cd7918e3f7f21 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 09:24:50 -0700 Subject: [PATCH 05/52] feat: `git.status.get_Added` ( Fixes #361 ) --- Types/git.status/get_Added.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Types/git.status/get_Added.ps1 diff --git a/Types/git.status/get_Added.ps1 b/Types/git.status/get_Added.ps1 new file mode 100644 index 00000000..f684946b --- /dev/null +++ b/Types/git.status/get_Added.ps1 @@ -0,0 +1,11 @@ +<# +.SYNOPSIS + Gets staged added files +.DESCRIPTION + Gets staged added files. These are all files that are new or modified. +#> +@(foreach ($staged in $this.staged) { + if ($staged.ChangeType -in 'newfile','modified') { + $staged.File + } +}) \ No newline at end of file From 27b95b01bbb488f5029805ba4bb90283441c53a8 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 09:25:53 -0700 Subject: [PATCH 06/52] feat: `git.status.get_Removed` ( Fixes #362 ) --- Types/git.status/get_Removed.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Types/git.status/get_Removed.ps1 diff --git a/Types/git.status/get_Removed.ps1 b/Types/git.status/get_Removed.ps1 new file mode 100644 index 00000000..d930bee8 --- /dev/null +++ b/Types/git.status/get_Removed.ps1 @@ -0,0 +1,13 @@ +<# +.SYNOPSIS + Gets staged removed files +.DESCRIPTION + Gets staged removed files. + + These are all files that are staged for removal. +#> +@(foreach ($staged in $this.staged) { + if ($staged.ChangeType -in 'deleted') { + $staged.Path + } +}) \ No newline at end of file From 2b9181688e07485a4d7a6d9e3fb4d7ab6ba402bc Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 09:27:00 -0700 Subject: [PATCH 07/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- Types/git.status/get_Deleted.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Types/git.status/get_Deleted.ps1 b/Types/git.status/get_Deleted.ps1 index 9e6b4203..dd95f38d 100644 --- a/Types/git.status/get_Deleted.ps1 +++ b/Types/git.status/get_Deleted.ps1 @@ -1,6 +1,6 @@ <# .SYNOPSIS - Gets deleted paths + Gets unstaged deleted paths .DESCRIPTION Gets unstaged deleted paths. #> From 3a2f9260353009f1261e8b569b26a802f065b15a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:30:01 +0000 Subject: [PATCH 08/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- ugit.types.ps1xml | 99 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/ugit.types.ps1xml b/ugit.types.ps1xml index e1a9598e..f1f6f7ef 100644 --- a/ugit.types.ps1xml +++ b/ugit.types.ps1xml @@ -719,6 +719,105 @@ Pop-Location + + Added + + <# +.SYNOPSIS + Gets staged added files +.DESCRIPTION + Gets staged added files. These are all files that are new or modified. +#> +@(foreach ($staged in $this.staged) { + if ($staged.ChangeType -in 'newfile','modified') { + $staged.File + } +}) + + + + Ahead + + <# +.SYNOPSIS + Gets the commits ahead +.DESCRIPTION + Gets the number of commits ahead of the remote branch. +#> +if ($GitStatus.Status -match 'ahead') { + $gitStatus.Status -replace '\D' -as [int] +} else { + 0 +} + + + + Behind + + <# +.SYNOPSIS + Gets the commits behind +.DESCRIPTION + Gets the number of commits behind the remote branch. +#> +if ($GitStatus.Status -match 'behind') { + @($gitStatus.Status -replace '[\D-[,]]','' -split ',',2)[0] -as [int] +} else { + 0 +} + + + + + Deleted + + <# +.SYNOPSIS + Gets unstaged deleted paths +.DESCRIPTION + Gets unstaged deleted paths. +#> +@(foreach ($unstaged in $this.Unstaged) { + if ($unstaged.ChangeType -eq 'deleted') { + $unstaged.Path + } +}) + + + + Modified + + <# +.SYNOPSIS + Gets modified files +.DESCRIPTION + Gets unstaged modified files +#> +@(foreach ($unstaged in $this.Unstaged) { + if ($unstaged.ChangeType -eq 'modified') { + $unstaged.File + } +}) + + + + Removed + + <# +.SYNOPSIS + Gets staged removed files +.DESCRIPTION + Gets staged removed files. + + These are all files that are staged for removal. +#> +@(foreach ($staged in $this.staged) { + if ($staged.ChangeType -in 'deleted') { + $staged.Path + } +}) + + From ba6ac85e6e3c43f571766000ea2e8d58c2567293 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:30:13 +0000 Subject: [PATCH 09/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- docs/git/status/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/git/status/README.md diff --git a/docs/git/status/README.md b/docs/git/status/README.md new file mode 100644 index 00000000..6077650d --- /dev/null +++ b/docs/git/status/README.md @@ -0,0 +1,12 @@ +## git.status + + +### Script Properties + + +* [get_Added](get_Added.md) +* [get_Ahead](get_Ahead.md) +* [get_Behind](get_Behind.md) +* [get_Deleted](get_Deleted.md) +* [get_Modified](get_Modified.md) +* [get_Removed](get_Removed.md) From 2f5a225e1516d4de0e632d3981d49de6a3eff859 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:30:13 +0000 Subject: [PATCH 10/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- docs/git/status/get_Added.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/git/status/get_Added.md diff --git a/docs/git/status/get_Added.md b/docs/git/status/get_Added.md new file mode 100644 index 00000000..d6aabf11 --- /dev/null +++ b/docs/git/status/get_Added.md @@ -0,0 +1,13 @@ +get_Added +--------- + +### Synopsis +Gets staged added files + +--- + +### Description + +Gets staged added files. These are all files that are new or modified. + +--- From 3c8cee4732e2106b19abd3e01a6313f3a5cd8d48 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:30:13 +0000 Subject: [PATCH 11/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- docs/git/status/get_Ahead.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/git/status/get_Ahead.md diff --git a/docs/git/status/get_Ahead.md b/docs/git/status/get_Ahead.md new file mode 100644 index 00000000..c2081f3d --- /dev/null +++ b/docs/git/status/get_Ahead.md @@ -0,0 +1,13 @@ +get_Ahead +--------- + +### Synopsis +Gets the commits ahead + +--- + +### Description + +Gets the number of commits ahead of the remote branch. + +--- From a41d2bce377ba29cdf271c805332aefdd0f92854 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:30:13 +0000 Subject: [PATCH 12/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- docs/git/status/get_Behind.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/git/status/get_Behind.md diff --git a/docs/git/status/get_Behind.md b/docs/git/status/get_Behind.md new file mode 100644 index 00000000..2ec881ec --- /dev/null +++ b/docs/git/status/get_Behind.md @@ -0,0 +1,13 @@ +get_Behind +---------- + +### Synopsis +Gets the commits behind + +--- + +### Description + +Gets the number of commits behind the remote branch. + +--- From f77301c3616fe69af1cab6103ff2fa5b1bb80092 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:30:13 +0000 Subject: [PATCH 13/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- docs/git/status/get_Deleted.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/git/status/get_Deleted.md diff --git a/docs/git/status/get_Deleted.md b/docs/git/status/get_Deleted.md new file mode 100644 index 00000000..d3b2a214 --- /dev/null +++ b/docs/git/status/get_Deleted.md @@ -0,0 +1,13 @@ +get_Deleted +----------- + +### Synopsis +Gets unstaged deleted paths + +--- + +### Description + +Gets unstaged deleted paths. + +--- From 5dff4b221fc3c5125ac94f99c13d8982962fa6f0 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:30:13 +0000 Subject: [PATCH 14/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- docs/git/status/get_Modified.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/git/status/get_Modified.md diff --git a/docs/git/status/get_Modified.md b/docs/git/status/get_Modified.md new file mode 100644 index 00000000..6f51bff3 --- /dev/null +++ b/docs/git/status/get_Modified.md @@ -0,0 +1,13 @@ +get_Modified +------------ + +### Synopsis +Gets modified files + +--- + +### Description + +Gets unstaged modified files + +--- From d10b0038de6a848a33749268dfb1e0ba26634e24 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:30:13 +0000 Subject: [PATCH 15/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- docs/git/status/get_Removed.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/git/status/get_Removed.md diff --git a/docs/git/status/get_Removed.md b/docs/git/status/get_Removed.md new file mode 100644 index 00000000..f63bbbe1 --- /dev/null +++ b/docs/git/status/get_Removed.md @@ -0,0 +1,15 @@ +get_Removed +----------- + +### Synopsis +Gets staged removed files + +--- + +### Description + +Gets staged removed files. + +These are all files that are staged for removal. + +--- From 079b65fe0bb66d07ce6ad97224d4a6722b0b7242 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 09:41:58 -0700 Subject: [PATCH 16/52] feat: `git.status.get_Ahead/get_Behind` ( Fixes #358, Fixes #359 ) Fixing reference --- Types/git.status/get_Ahead.ps1 | 4 ++-- Types/git.status/get_Behind.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Types/git.status/get_Ahead.ps1 b/Types/git.status/get_Ahead.ps1 index 59a78118..b72d1b7e 100644 --- a/Types/git.status/get_Ahead.ps1 +++ b/Types/git.status/get_Ahead.ps1 @@ -4,8 +4,8 @@ .DESCRIPTION Gets the number of commits ahead of the remote branch. #> -if ($GitStatus.Status -match 'ahead') { - $gitStatus.Status -replace '\D' -as [int] +if ($this.Status -match 'ahead') { + $this.Status -replace '\D' -as [int] } else { 0 } \ No newline at end of file diff --git a/Types/git.status/get_Behind.ps1 b/Types/git.status/get_Behind.ps1 index ae23a02a..c4d72ae3 100644 --- a/Types/git.status/get_Behind.ps1 +++ b/Types/git.status/get_Behind.ps1 @@ -4,8 +4,8 @@ .DESCRIPTION Gets the number of commits behind the remote branch. #> -if ($GitStatus.Status -match 'behind') { - @($gitStatus.Status -replace '[\D-[,]]','' -split ',',2)[0] -as [int] +if ($this.Status -match 'behind') { + @($this.Status -replace '[\D-[,]]','' -split ',',2)[0] -as [int] } else { 0 } From 30b0ec2472b81023092d1602f4fcf571aa01aa27 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 16:50:35 +0000 Subject: [PATCH 17/52] feat: `git.status.get_Ahead/get_Behind` ( Fixes #358, Fixes #359 ) Fixing reference --- ugit.types.ps1xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ugit.types.ps1xml b/ugit.types.ps1xml index f1f6f7ef..423bdcae 100644 --- a/ugit.types.ps1xml +++ b/ugit.types.ps1xml @@ -744,8 +744,8 @@ Pop-Location .DESCRIPTION Gets the number of commits ahead of the remote branch. #> -if ($GitStatus.Status -match 'ahead') { - $gitStatus.Status -replace '\D' -as [int] +if ($this.Status -match 'ahead') { + $this.Status -replace '\D' -as [int] } else { 0 } @@ -760,8 +760,8 @@ if ($GitStatus.Status -match 'ahead') { .DESCRIPTION Gets the number of commits behind the remote branch. #> -if ($GitStatus.Status -match 'behind') { - @($gitStatus.Status -replace '[\D-[,]]','' -split ',',2)[0] -as [int] +if ($this.Status -match 'behind') { + @($this.Status -replace '[\D-[,]]','' -split ',',2)[0] -as [int] } else { 0 } From 0159dbf638c30c398b32d68de2dd51cc1eebc3f4 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 10:32:18 -0700 Subject: [PATCH 18/52] feat: `git status` formatting improvment ( Fixes #363 ) Adjusting colors and spacing --- Types/git.status/Git.Status.format.ps1 | 110 ++++++++++++++++++++----- 1 file changed, 89 insertions(+), 21 deletions(-) diff --git a/Types/git.status/Git.Status.format.ps1 b/Types/git.status/Git.Status.format.ps1 index bae270a9..ce891fe0 100644 --- a/Types/git.status/Git.Status.format.ps1 +++ b/Types/git.status/Git.Status.format.ps1 @@ -1,45 +1,113 @@ Write-FormatView -TypeName Git.Status -Action { Write-FormatViewExpression -Text "On branch: " - Write-FormatViewExpression -ScriptBlock { $_.BranchName } -if { $_.BranchName -notin 'main', 'master' } -ForegroundColor Verbose - Write-FormatViewExpression -ScriptBlock { $_.BranchName } -if { $_.BranchName -in 'main', 'master' } -ForegroundColor Warning + + Write-FormatViewExpression -ScriptBlock { + $branchName = $_.BranchName + @( + if ($branchName -notin 'main', 'master', 'latest') { + $PSStyle.Foreground.Cyan + $PSStyle.Bold + } else { + $PSStyle.Formatting.Warning + } + $branchName + $PSStyle.Reset + ) -join '' + } Write-FormatViewExpression -Newline - Write-FormatViewExpression -If { $_.Status -notlike 'Nothing*' } -ScriptBlock { $_.Status + [Environment]::NewLine } + + Write-FormatViewExpression -ScriptBlock { + $gitStatus = $_ + if ($gitStatus.Status -match 'nothing') { + return '' + } + @( + if ($gitStatus.Ahead) { + $PSStyle.Formatting.Success + } elseif ($gitStatus.Behind) { + $PSStyle.Formatting.Error + } + else { + $PSStyle.Foreground.Cyan + } + $gitStatus.Status + [Environment]::NewLine + $PSStyle.Reset + ) -join '' + } + Write-formatviewExpression -If { $_.Staged } -ScriptBlock { "Changes Staged For Commit: (use git commit -m to commit)" + [Environment]::NewLine } + Write-FormatViewExpression -If { $_.Staged } -ScriptBlock { - (@(foreach ($line in $($_.Staged | Select-Object ChangeType, Path | Out-String -Width ($host.UI.RawUI.BufferSize.Width - 8)) -split '(?>\r\n|\n)') { - (" " * 4) + $line - }) -join [Environment]::NewLine) + [Environment]::NewLine - } -ForegroundColor Green + (@( + foreach ($staged in $_.Staged) { + "`t$($staged.ChangeType):`t$($staged.Path)" + } + ) -join [Environment]::NewLine) + ( + [Environment]::NewLine * 2 + ) + } Write-FormatViewExpression -If { $_.Unstaged } -ScriptBlock { - "Changes Not Staged For Commit: - (use git add to add, git restore to discard changes)" + [Environment]::NewLine + (@( + "Changes $($PSStyle.Foreground.Cyan + $PSStyle.Bold)Not Staged$($PSStyle.Reset) for commit:" + ' (use "git add ..." to update what will be committed)' + ' (use "git restore ..." to discard changes in working directory)' + ) -join [Environment]::NewLine) + ( + [Environment]::NewLine * 2 + ) } - Write-FormatViewExpression -If { $_.Unstaged} -ScriptBlock { - (@(foreach ($line in $($_.Unstaged | Select-Object ChangeType, Path | Out-String -Width ($host.UI.RawUI.BufferSize.Width - 8)) -split '(?>\r\n|\n)') { - (" " * 4) + $line - }) -join [Environment]::NewLine) + [Environment]::NewLine - } -ForegroundColor Red + Write-FormatViewExpression -If { $_.Unstaged } -ScriptBlock { + (@( + foreach ($staged in $_.Unstaged) { + "`t$( + if ($staged.changetype -eq 'modified') { + $PSStyle.Foreground.Cyan + } + elseif ($PSStyle.changetype -eq 'newfile') { + $PSStyle.Foreground.Green + } + elseif ($staged.changetype -eq 'deleted') { + $PSStyle.Foreground.Red + } else { + $PSStyle.Foreground.White + } + $psStyle.Bold + )$($staged.ChangeType):`t$($staged.Path)$($PSStyle.Reset)" + } + ) -join [Environment]::NewLine) + ( + [Environment]::NewLine * 2 + ) + } Write-FormatViewExpression -If { $_.Untracked } -ScriptBlock { - "Untracked Files: - (use git add to include in commit)" + [Environment]::NewLine + (@( + "$($PSStyle.Foreground.Magenta + $PSStyle.Bold)Untracked$($PSStyle.Reset) Files:" + ' (use "git add ..." to include in what will be committed)' + ) -join [Environment]::NewLine) + ( + [Environment]::NewLine * 2 + ) } Write-FormatViewExpression -If { $_.Untracked} -ScriptBlock { - @(foreach ($line in $($_.Untracked | Out-String -Width ($host.UI.RawUI.BufferSize.Width - 8)) -split '(?>\r\n|\n)') { - (" " * 4) + $line - }) -join [Environment]::NewLine - } -ForegroundColor Yellow + (@( + $gitRoot = $_.GitRoot + foreach ($untracked in $_.Untracked) { + "`t$( + $untracked.FullName.Substring($gitRoot.Length + 1) -replace '[\\/]', '/' + )" + } + ) -join [Environment]::NewLine) + + [Environment]::NewLine + [Environment]::NewLine + } -ForegroundColor Magenta Write-FormatViewExpression -ScriptBlock { if(($_.Untracked.Count + $_.Unstaged.Count + $_.Staged.Count) -eq 0) { "Nothing to commit, working tree clean" } - } + } -ForegroundColor Success } From 9dc4b5014750fd338760504731da91675d776261 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 10:40:14 -0700 Subject: [PATCH 19/52] feat: `git status` formatting improvment ( Fixes #363 ) Fixing ahead color --- Types/git.status/Git.Status.format.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Types/git.status/Git.Status.format.ps1 b/Types/git.status/Git.Status.format.ps1 index ce891fe0..02e99585 100644 --- a/Types/git.status/Git.Status.format.ps1 +++ b/Types/git.status/Git.Status.format.ps1 @@ -22,9 +22,9 @@ Write-FormatView -TypeName Git.Status -Action { return '' } @( - if ($gitStatus.Ahead) { - $PSStyle.Formatting.Success - } elseif ($gitStatus.Behind) { + if ($gitStatus.Ahead -gt 0) { + $PSStyle.Foreground.Green + $PSStyle.Bold + } elseif ($gitStatus.Behind -gt 0) { $PSStyle.Formatting.Error } else { From 64d0b73d9ea94a869d305269f57d0f8b798c5c2c Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 10:44:23 -0700 Subject: [PATCH 20/52] feat: `git status` formatting improvment ( Fixes #363 ) Fixing diverged color --- Types/git.status/Git.Status.format.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Types/git.status/Git.Status.format.ps1 b/Types/git.status/Git.Status.format.ps1 index 02e99585..7fe2b1f2 100644 --- a/Types/git.status/Git.Status.format.ps1 +++ b/Types/git.status/Git.Status.format.ps1 @@ -24,9 +24,10 @@ Write-FormatView -TypeName Git.Status -Action { @( if ($gitStatus.Ahead -gt 0) { $PSStyle.Foreground.Green + $PSStyle.Bold - } elseif ($gitStatus.Behind -gt 0) { + } elseif ($gitStatus.Behind -gt 0 -or + $gitStatus.Status -match 'diverged') { $PSStyle.Formatting.Error - } + } else { $PSStyle.Foreground.Cyan } From cf1fbae7c74240b312731a098f4e8db9ee65e65a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 17:46:03 +0000 Subject: [PATCH 21/52] feat: `git status` formatting improvment ( Fixes #363 ) Fixing diverged color --- ugit.format.ps1xml | 222 ++++++++++++++++++++++++--------------------- 1 file changed, 117 insertions(+), 105 deletions(-) diff --git a/ugit.format.ps1xml b/ugit.format.ps1xml index 88e77276..0527404e 100644 --- a/ugit.format.ps1xml +++ b/ugit.format.ps1xml @@ -2832,74 +2832,41 @@ $BackgroundColor On branch: - - $_.BranchName -notin 'main', 'master' - - $moduleName = 'ugit' - - do { - $lm = Get-Module -Name $moduleName -ErrorAction Ignore - if (-not $lm) { continue } - if ($lm.FormatPartsLoaded) { break } - $wholeScript = @(foreach ($formatFilePath in $lm.exportedFormatFiles) { - foreach ($partNodeName in Select-Xml -LiteralPath $formatFilePath -XPath "/Configuration/Controls/Control/Name[starts-with(., '$')]") { - $ParentNode = $partNodeName.Node.ParentNode - "$($ParentNode.Name)={ - $($ParentNode.CustomControl.CustomEntries.CustomEntry.CustomItem.ExpressionBinding.ScriptBlock)}" - } - }) -join [Environment]::NewLine - New-Module -Name "${ModuleName}.format.ps1xml" -ScriptBlock ([ScriptBlock]::Create(($wholeScript + ';Export-ModuleMember -Variable *'))) | - Import-Module -Global - $onRemove = [ScriptBlock]::Create("Remove-Module '${ModuleName}.format.ps1xml'") - - if (-not $lm.OnRemove) { - $lm.OnRemove = $onRemove - } else { - $lm.OnRemove = [ScriptBlock]::Create($onRemove.ToString() + '' + [Environment]::NewLine + $lm.OnRemove) - } - $lm | Add-Member NoteProperty FormatPartsLoaded $true -Force - - } while ($false) - - -@(& ${ugit_Format-RichText} -ForegroundColor 'Verbose' -NoClear) -join '' - - - - $_.BranchName -notin 'main', 'master' - - $_.BranchName - - - - $_.BranchName -notin 'main', 'master' - - @(& ${ugit_Format-RichText} -ForegroundColor 'Verbose' ) -join '' - - - - $_.BranchName -in 'main', 'master' - - @(& ${ugit_Format-RichText} -ForegroundColor 'Warning' -NoClear) -join '' - - - - $_.BranchName -in 'main', 'master' - - $_.BranchName - - - - $_.BranchName -in 'main', 'master' - - @(& ${ugit_Format-RichText} -ForegroundColor 'Warning' ) -join '' + + $branchName = $_.BranchName + @( + if ($branchName -notin 'main', 'master', 'latest') { + $PSStyle.Foreground.Cyan + $PSStyle.Bold + } else { + $PSStyle.Formatting.Warning + } + $branchName + $PSStyle.Reset + ) -join '' + - - $_.Status -notlike 'Nothing*' - - $_.Status + [Environment]::NewLine + + $gitStatus = $_ + if ($gitStatus.Status -match 'nothing') { + return '' + } + @( + if ($gitStatus.Ahead -gt 0) { + $PSStyle.Foreground.Green + $PSStyle.Bold + } elseif ($gitStatus.Behind -gt 0 -or + $gitStatus.Status -match 'diverged') { + $PSStyle.Formatting.Error + } + else { + $PSStyle.Foreground.Cyan + } + $gitStatus.Status + [Environment]::NewLine + $PSStyle.Reset + ) -join '' + @@ -2910,89 +2877,131 @@ $BackgroundColor (use git commit -m to commit)" + [Environment]::NewLine - - - $_.Staged - - @(& ${ugit_Format-RichText} -ForegroundColor 'Green' -NoClear) -join '' - $_.Staged - (@(foreach ($line in $($_.Staged | Select-Object ChangeType, Path | Out-String -Width ($host.UI.RawUI.BufferSize.Width - 8)) -split '(?>\r\n|\n)') { - (" " * 4) + $line - }) -join [Environment]::NewLine) + [Environment]::NewLine + (@( + foreach ($staged in $_.Staged) { + "`t$($staged.ChangeType):`t$($staged.Path)" + } + ) -join [Environment]::NewLine) + ( + [Environment]::NewLine * 2 + ) - - - $_.Staged - - @(& ${ugit_Format-RichText} -ForegroundColor 'Green' ) -join '' - $_.Unstaged - "Changes Not Staged For Commit: - (use git add <file> to add, git restore <file> to discard changes)" + [Environment]::NewLine + (@( + "Changes $($PSStyle.Foreground.Cyan + $PSStyle.Bold)Not Staged$($PSStyle.Reset) for commit:" + ' (use "git add <file>..." to update what will be committed)' + ' (use "git restore <file>..." to discard changes in working directory)' + ) -join [Environment]::NewLine) + ( + [Environment]::NewLine * 2 + ) - $_.Unstaged - - @(& ${ugit_Format-RichText} -ForegroundColor 'Red' -NoClear) -join '' - - - - $_.Unstaged + $_.Unstaged - (@(foreach ($line in $($_.Unstaged | Select-Object ChangeType, Path | Out-String -Width ($host.UI.RawUI.BufferSize.Width - 8)) -split '(?>\r\n|\n)') { - (" " * 4) + $line - }) -join [Environment]::NewLine) + [Environment]::NewLine + (@( + foreach ($staged in $_.Unstaged) { + "`t$( + if ($staged.changetype -eq 'modified') { + $PSStyle.Foreground.Cyan + } + elseif ($PSStyle.changetype -eq 'newfile') { + $PSStyle.Foreground.Green + } + elseif ($staged.changetype -eq 'deleted') { + $PSStyle.Foreground.Red + } else { + $PSStyle.Foreground.White + } + $psStyle.Bold + )$($staged.ChangeType):`t$($staged.Path)$($PSStyle.Reset)" + } + ) -join [Environment]::NewLine) + ( + [Environment]::NewLine * 2 + ) - - - $_.Unstaged - - @(& ${ugit_Format-RichText} -ForegroundColor 'Red' ) -join '' - $_.Untracked - "Untracked Files: - (use git add <file> to include in commit)" + [Environment]::NewLine + (@( + "$($PSStyle.Foreground.Magenta + $PSStyle.Bold)Untracked$($PSStyle.Reset) Files:" + ' (use "git add <file>..." to include in what will be committed)' + ) -join [Environment]::NewLine) + ( + [Environment]::NewLine * 2 + ) $_.Untracked - @(& ${ugit_Format-RichText} -ForegroundColor 'Yellow' -NoClear) -join '' + $moduleName = 'ugit' + + do { + $lm = Get-Module -Name $moduleName -ErrorAction Ignore + if (-not $lm) { continue } + if ($lm.FormatPartsLoaded) { break } + $wholeScript = @(foreach ($formatFilePath in $lm.exportedFormatFiles) { + foreach ($partNodeName in Select-Xml -LiteralPath $formatFilePath -XPath "/Configuration/Controls/Control/Name[starts-with(., '$')]") { + $ParentNode = $partNodeName.Node.ParentNode + "$($ParentNode.Name)={ + $($ParentNode.CustomControl.CustomEntries.CustomEntry.CustomItem.ExpressionBinding.ScriptBlock)}" + } + }) -join [Environment]::NewLine + New-Module -Name "${ModuleName}.format.ps1xml" -ScriptBlock ([ScriptBlock]::Create(($wholeScript + ';Export-ModuleMember -Variable *'))) | + Import-Module -Global + $onRemove = [ScriptBlock]::Create("Remove-Module '${ModuleName}.format.ps1xml'") + + if (-not $lm.OnRemove) { + $lm.OnRemove = $onRemove + } else { + $lm.OnRemove = [ScriptBlock]::Create($onRemove.ToString() + '' + [Environment]::NewLine + $lm.OnRemove) + } + $lm | Add-Member NoteProperty FormatPartsLoaded $true -Force + + } while ($false) + + +@(& ${ugit_Format-RichText} -ForegroundColor 'Magenta' -NoClear) -join '' $_.Untracked - @(foreach ($line in $($_.Untracked | Out-String -Width ($host.UI.RawUI.BufferSize.Width - 8)) -split '(?>\r\n|\n)') { - (" " * 4) + $line - }) -join [Environment]::NewLine + (@( + $gitRoot = $_.GitRoot + foreach ($untracked in $_.Untracked) { + "`t$( + $untracked.FullName.Substring($gitRoot.Length + 1) -replace '[\\/]', '/' + )" + } + ) -join [Environment]::NewLine) + + [Environment]::NewLine + [Environment]::NewLine $_.Untracked - @(& ${ugit_Format-RichText} -ForegroundColor 'Yellow' ) -join '' + @(& ${ugit_Format-RichText} -ForegroundColor 'Magenta' ) -join '' + + + @(& ${ugit_Format-RichText} -ForegroundColor 'Success' -NoClear) -join '' @@ -3002,6 +3011,9 @@ $BackgroundColor } + + @(& ${ugit_Format-RichText} -ForegroundColor 'Success' ) -join '' + From a1726132210cbfb4b990e8c2bded5a7a30576ecd Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 10:53:27 -0700 Subject: [PATCH 22/52] feat: `git.status.get_Deleted` ( Fixes #357 ) Clarifying docs --- Types/git.status/get_Deleted.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Types/git.status/get_Deleted.ps1 b/Types/git.status/get_Deleted.ps1 index dd95f38d..544da56f 100644 --- a/Types/git.status/get_Deleted.ps1 +++ b/Types/git.status/get_Deleted.ps1 @@ -1,6 +1,6 @@ <# .SYNOPSIS - Gets unstaged deleted paths + Gets unstaged deleted paths. .DESCRIPTION Gets unstaged deleted paths. #> From a5442062dbf8f5caa63e7ec5ef56734bab275fac Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 11:00:49 -0700 Subject: [PATCH 23/52] feat: `git.status.WorkingDirectory` ( Fixes #365 ) --- Extensions/Git.Status.UGit.Extension.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Extensions/Git.Status.UGit.Extension.ps1 b/Extensions/Git.Status.UGit.Extension.ps1 index fb5e09c5..83f2aac6 100644 --- a/Extensions/Git.Status.UGit.Extension.ps1 +++ b/Extensions/Git.Status.UGit.Extension.ps1 @@ -37,6 +37,11 @@ end { Unstaged = @() Untracked = @() GitRoot = $GitRoot + WorkingDirectory = if ("$PWD".StartsWith($GitRoot)) { + $pwd + } else { + $gitRoot + } } $inPhase = '' From 9b72fb21bc2e4d4ce2979f8da1eb39ed2b86d35a Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 21 Jul 2026 11:01:56 -0700 Subject: [PATCH 24/52] feat: `git.status.Diff()` ( Fixes #364 ) --- Types/git.status/Diff.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Types/git.status/Diff.ps1 diff --git a/Types/git.status/Diff.ps1 b/Types/git.status/Diff.ps1 new file mode 100644 index 00000000..408318cd --- /dev/null +++ b/Types/git.status/Diff.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Gets Status Difference +.DESCRIPTION + Gets the diff of a status. + + This will show any modifications to files. +#> +param() + +Push-Location $this.WorkingDirectory +git status . | + Select-Object -ExpandProperty Modified | + git diff +Pop-Location \ No newline at end of file From ba195c45b39505649e8024797a1c4e8611fe44fc Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 21 Jul 2026 18:03:40 +0000 Subject: [PATCH 25/52] feat: `git.status.Diff()` ( Fixes #364 ) --- ugit.types.ps1xml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/ugit.types.ps1xml b/ugit.types.ps1xml index 423bdcae..a5b2ac7a 100644 --- a/ugit.types.ps1xml +++ b/ugit.types.ps1xml @@ -706,6 +706,26 @@ Pop-Location git.status + + Diff + + Push - - GitDiff - - Push-Location $this.Directory -(git log -n 1 $this.Name).Diff() -Pop-Location - - - - - GitDirty - - Push-Location $this.Directory -$(git status $this.Name '-s') -as [bool] -Pop-Location - - - - - GitLogs - - Push-Location $this.Directory -git log $this.Name -Pop-Location - - - From a90e49e58a68177653c008a32c18bd0302807b49 Mon Sep 17 00:00:00 2001 From: James Brundage <+@users.noreply.github.com> Date: Tue, 27 Oct 2026 13:58:57 -0700 Subject: [PATCH 41/52] feat: git.prompt ( Fixes #368 ) --- Commands/Get-GitPrompt.ps1 | 364 +++++++++++++++++++++++++++++++++++++ 1 file changed, 364 insertions(+) create mode 100644 Commands/Get-GitPrompt.ps1 diff --git a/Commands/Get-GitPrompt.ps1 b/Commands/Get-GitPrompt.ps1 new file mode 100644 index 00000000..ef47fd68 --- /dev/null +++ b/Commands/Get-GitPrompt.ps1 @@ -0,0 +1,364 @@ +function Get-GitPrompt { + <# + .SYNOPSIS + Git Prompt + .DESCRIPTION + Git friendly PowerShell prompt. + + Shows current branch, modified, untracked, added, and removed files. + #> + [Alias('git.prompt')] + param( + # The icon used for git branches. + # By default `⑆` (OCR Branch Bank Identification [0x2446]) + [string] + $BranchIcon = '⑆', + + # The prompt icon after a successful command. + # By default, `≻` (Succeeds [0x227b]) + [string] + $SuccessIcon = '≻', #'⊃', # '>', "➫", "⮚" + + # By default, `≻` (Does not Succeed [0x2281]) + [string] + $ErrorIcon = '⊁', + + # The home icon. + # This is displayed when the path is + # beneath the user home directory. + # By default: `⌂` (House [0x2302]) + [string] + $HomeIcon = '⌂', + + [string] + $BranchOpenIcon = '⟦', + + [string] + $BranchCloseIcon = '⟧', + + [string] + $JobIcon = '⏲', + + # The icon used for slash. + # This will separate directories. + # By default ` ⹊ ` (Dotted Solidus [0x2e4a]) + [string] + $Slash = " ⹊ ", # '⹊' #, '/' + + # The style to use when things succeed + [string] + $SuccessStyle = $PSStyle.Foreground.Green, + + # The style to use when things fail + [string] + $ErrorStyle = $PSStyle.Foreground.Red, + + # The style to use when warning + [string] + $WarningStyle = $PSStyle.Foreground.Yellow, + + # The style to use when cyan + [string] + $InfoStyle = $PSStyle.Foreground.Cyan, + + [string] + $UnknownStyle = $PSStyle.Foreground.Magenta, + + # The style to use when bolding text. + [string] + $BoldStyle = $psStyle.Bold, + + [string] + $BoldStyleOff = $psStyle.Bold.Off, + + # The string used to reset styles. + [string] + $ResetStyle = $PSStyle.Reset, + + # If set, will display the history ID + [switch] + $ShowHistoryId + ) + + # Capture if the last statement worked + # (if we do not do this first, it will not be accurate) + $worked = $? + + # If we have a nested prompt level greater than one + # we are debugging or in another nested context. + # Performance will be more important in this case + if ($NestedPromptLevel -gt 1) { + # so simply multiply our prompt icon by the nested prompt level + return ($SuccessIcon * $NestedPromptLevel) + } + + # We may want to pad the lines + $LeftPadding = + # If we are not showing the history ID + if (-not $ShowHistoryId) { + ' ' # we can padd with a single space + } else { + # Otherwise, pad with the history id length. + ' ' * "$($MyInvocation.HistoryId)".Length + } + + # Determine if nothing happened + # (someone just pressing `ENTER` will not increment the history ID) + $isNoOp = $script:LastHistoryId -eq $MyInvocation.HistoryId + + # Determine our display path. + $displayPath = + # If we're somewhere beneath `$home` + if ("$pwd".StartsWith("$home")) { + # Use the home icon + $HomeIcon, + # and the path beneath home + "$pwd".Substring( + "$home".Length + ) -replace # Fix slashes to unix style + '[\\/]+','/' -replace # then replace any duplicate slashes + '/+','/' -join + '' + } else { + # Otherwise, just fix slashes to unix style. + "$pwd" -replace '[\\/]+', '/' + } + + # Replace the last slash, and then replace slashes with our slash icon + $displayPath = $displayPath -replace '/{0,}$' -replace '/+',$Slash + + # If nothing happened + if ($isNoOp) { + # Output our prompt + return "$( + # If the last command worked, use the info style; + if ($worked) { $InfoStyle } + # otherwise, use the error style. + else { $ErrorStyle } + )$( + # If the last command worked, use the success icon; + if ($worked) {$SuccessIcon} + # otherwise, use the error icon. + else { $ErrorIcon } + )$($LeftPadding)$( + $ResetStyle + )" + } else { + # If something happened, update our history ID. + $script:LastHistoryId = $MyInvocation.HistoryId + } + + # Next we want to check for git remotes. + + # Cache any remote paths we find + if (-not $script:GitRemotePath) { + $script:GitRemotePath = [Ordered]@{} + } + # If we do not know the remote for the current directory + if (-not $script:GitRemotePath.Contains("$pwd")) { + # get the remote + $script:GitRemotePath["$pwd"] = git remote -ErrorAction Ignore | git remote show + } + + # There might be more than one remote. We want the first. + $gitRemoteUrl = @($script:GitRemotePath["$pwd"].RemoteUrls.Fetch)[0] + + $repoUrl = $gitRemoteUrl -replace + '^ssh://', 'https://' -replace + '\.git$' -replace + '\.wiki$', '/wiki' -as [uri] + + # Now git our status + $gitStatus = if ([IO.Directory]::Exists($pwd)) { + git status . -WarningAction Ignore + } else { + $null + } + + # If somehow that failed + if (-not $gitStatus) { + # If there was no status url, we're not in a repository. + # Output our prompt + return "$( + # Show the history ID (or not) + if ($ShowHistoryId) { + "$($myInvocation.HistoryId) " + } else { + '' + } + )$( + # Followed by the display path + $displayPath + ) $( + # Followed by the appropriate style + if ($worked) { $InfoStyle } + else { $ErrorStyle } + )$( + # and icon (based off of the success/failure of the last command) + if ($worked) {$SuccessIcon} + else {$ErrorIcon } + )$( + $ResetStyle + )$(' ' * 1)" + } + + # Collect the files that have been staged for addition + $stagedModified = @($gitStatus.Added) + # and deletion. + $stagedDeletes = @($gitStatus.Removed) + # Collect the files that have been locally modified + $modified = @($gitStatus.Modified) + # and deleted. + $deleted = @($gitStatus.Deleted) + + # Last but not least, collect untracked files. + $untracked = @($gitStatus.Untracked) + + # Create a link to our repo + $LinkToRepo = $PSStyle.FormatHyperlink( + # This will make our file tree link to the repo tree + $displayPath, + "$repoUrl" + ) + + # Get our git relative path. + $gitRelativePath = + "$pwd".Substring($gitStatus.GitRoot.Length) -replace '[\\/]', '/' + + # Prepare the branch info portion of our prompt + $gitBranchInfo = @( + # If the branch is in `main`, `master`, or `latest`, + # you might want to check out. + if ($GitStatus.BranchName -in 'main', 'master', 'latest') { + # So we will display that as a warning + $WarningStyle + } else { + # If we are behind the upstream + if ($gitCommitsBehind -or + # or have diverged, we're in trouble. + $gitStatus.Status -match 'diverged') { + $ErrorStyle # and should show the repo using the error style. + } elseif ($gitStatus.Staged) { + # If we've got commits staged for addition + $SuccessStyle # we're green / good to go. + } else { + # Otherwise, we're just informing you about the branch name. + $InfoStyle + } + } + + + # The rest of our git branch info is: + $BoldStyle # * Bold + $BranchIcon # * Branch Icon + $LeftPadding # * LeftPadding + $BranchOpenIcon # * BranchOpenIcon + $gitStatus.BranchName # * `$gitStatus.BranchName` + $BranchCloseIcon # * Close our branch. + $BoldStyleOff # * Bold Off + $ResetStyle # * Reset Style + ) + + # Now we just have to hyperlink things + $gitInfo = @( + # If we have a repo url + if ($repoUrl) { + # make a hyperlink to it and display the branch info + $PSStyle.FormatHyperlink( + "$($gitBranchInfo -join '')", + "$repoUrl/tree/$($gitStatus.BranchName)$GitRelativePath" + ) + } else { + $gitBranchInfo -join '' + } + + # If we are in a git subdirectory + if ($gitRelativePath) { + # hyperlink to this exact spot in the tree. + $PSStyle.FormatHyperlink( + ($gitRelativePath -replace '[\\/]', $Slash), + "$repoUrl/tree/$($gitStatus.BranchName)$GitRelativePath" + ) + } + + # If the branches have diverged + if ($gitStatus.Status -match 'diverged') { + # Make sure we notice. + "$($ErrorStyle) diverged!$($($ResetStyle))" + } + + # If we are behind + if ($gitStatus.Behind -gt 0) { + # make sure we notice. + "$($ErrorStyle)(-$($gitStatus.Behind))$($ResetStyle)" + } + + # If we are ahead + if ($gitStatus.Ahead -gt 0) { + # make sure we notice and feel successful. + "$($SuccessStyle)(+$($gitStatus.Ahead))$($ResetStyle)" + } + + # If we have any staged files, + if ($stagedModified) { + # make sure we know how many have been added. + $SuccessStyle, + " $($stagedModified.Length) added", + $ResetStyle + } + + # If we have any deleted files, + if ($stagedDeletes) { + # make sure we know how many have been removed. + $ErrorStyle, + " $($stagedDeletes.Length) removed", + $ResetStyle + } + + # If we have any modified files + if ($modified) { + # Display the info. + $InfoStyle, + " $($modified.Length) modified", + $ResetStyle + } + + # If we have any deleted files + if ($deleted) { + # Make sure we know. + $ErrorStyle, + " $($deleted.Length) deleted", + $ResetStyle + } + + # If we have any untracked files + if ($untracked) { + + $PSStyle.Foreground.Magenta, + " $($untracked.Count) untracked", + $ResetStyle + } + $ResetStyle + ) -join '' + + # ⮚ ⟣ ⤳ ⟫ ⟩ + "$( + if (-not $ShowHistoryId) { + '' + } else { + "$($myInvocation.HistoryId) " + } + )$LinkToRepo", + "$gitInfo", + "$( + if ($worked) { $InfoStyle } + else { $ErrorStyle } + )$( + if ($worked) {$SuccessIcon} + else {$ErrorIcon } + )$LeftPadding$( + $ResetStyle + )" -join + [Environment]::NewLine + +} \ No newline at end of file From 8553329102344f0c4a3c54a5ecdbfdaaf3430123 Mon Sep 17 00:00:00 2001 From: James Brundage <+@users.noreply.github.com> Date: Tue, 27 Oct 2026 13:59:53 -0700 Subject: [PATCH 42/52] feat: git.octal ( Fixes #370 ) --- Commands/Get-GitOctal.ps1 | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Commands/Get-GitOctal.ps1 diff --git a/Commands/Get-GitOctal.ps1 b/Commands/Get-GitOctal.ps1 new file mode 100644 index 00000000..5a53ebb6 --- /dev/null +++ b/Commands/Get-GitOctal.ps1 @@ -0,0 +1,48 @@ +function Get-GitOctal { + <# + .SYNOPSIS + Gets Git Octal strings + .DESCRIPTION + Gets Git Octal strings as the current output encoding. + #> + [Alias('git.octal')] + param( + # An octal string + [Parameter(ValueFromPipelineByPropertyName)] + [string] + $OctalString + ) + + process { + # So we want to decode an octal string from git. + [Regex]::Replace( + # First we trim leading and trailing quotes. Easy. + $OctalString -replace '^"|"$', + # Then we look for any sequence of slash + 3 digits [0-7] + "(?:\\[0-7]{3}){1,}", + # And replace them with this short script + { + param($match) + # We want them back as UTF8 + $OutputEncoding.GetString( + # But these bytes are encoded with + # [ISO-8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) + [Text.Encoding]::GetEncoding('ISO-8859-1').GetBytes( + # The match contains the sequence + @( + foreach ( + # so we split it up + # (which removes the slash) + $octalByte in $match -split '\\' -ne '' + ) { + # then we convert each byte in base 8 + [Convert]::ToByte($octalByte,8) -as + [char] # and make it a character + } + ) -join '' # then we join our characters, + ) # get their bytes, + ) # and output the replaced string. + } + ) + } +} From 41ba222b82eed1a12419f5aeaede4877187f696d Mon Sep 17 00:00:00 2001 From: James Brundage <+@users.noreply.github.com> Date: Tue, 27 Oct 2026 14:08:48 -0700 Subject: [PATCH 43/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- CHANGELOG.md | 25 ++++++++++++++++++++++++ ugit.psd1 | 54 +++++++++++++++++++++++++++++++--------------------- 2 files changed, 57 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7243d569..29acee5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,31 @@ > Love It? [Support It](https://github.com/sponsors/StartAutomating) +## ugit 0.4.7 + +* `git status` improvement + * `git.status.ahead` (#358) + * `git.status.behind` (#359) + * `git.status.modified` (#356) + * `git.status.deleted` (#357) + * `git.status.addded` (#361) + * `git.status` formatting improvement (#363) + * `git.status.WorkingDirectory` (#365) + * `git.status.Unmerged` (#367) + * `git.status.Diff` (#364) + * `git status --short` support (#343) + * Performance and fault tolerance (#366) +* Removing IO.FileInfo extended properties (#369) +* Internationalization support (#177) +* New Functions: + * `Get-GitPrompt` (#368) + * `Get-GitOctal` (#370) + +To use the new prompt, you can simply: + +Set-Alias prompt git.prompt + +--- ## ugit 0.4.6: diff --git a/ugit.psd1 b/ugit.psd1 index 318623bd..4397ea4c 100644 --- a/ugit.psd1 +++ b/ugit.psd1 @@ -1,5 +1,5 @@ @{ - ModuleVersion = '0.4.6' + ModuleVersion = '0.4.7' RootModule = 'ugit.psm1' FormatsToProcess = 'ugit.format.ps1xml' TypesToProcess = 'ugit.types.ps1xml' @@ -10,14 +10,21 @@ Description = 'ugit: git, updated with PowerShell' FunctionsToExport = @( - 'Get-UGitExtension','Use-Git','Out-Git','Get-GitFunction' + 'Get-UGitExtension','Use-Git','Out-Git', + + 'Get-GitFunction' + + 'Get-GitOctal' + + 'Get-GitPrompt' ) AliasesToExport = @( 'git', 'gitreal', 'realgit', 'gitFunction', 'gitFunctions', - 'git.func', 'git.function', 'git.functions' + 'git.func', 'git.function', 'git.functions', + 'git.octal', 'git.prompt' ) PrivateData = @{ @@ -34,26 +41,29 @@ * [Discussions](https://github.com/StartAutomating/ugit/discussions/) * [Website](https://ugit.start-automating.com/) -## ugit 0.4.6: +## ugit 0.4.7 + +* `git status` improvement + * `git.status.ahead` (#358) + * `git.status.behind` (#359) + * `git.status.modified` (#356) + * `git.status.deleted` (#357) + * `git.status.addded` (#361) + * `git.status` formatting improvement (#363) + * `git.status.WorkingDirectory` (#365) + * `git.status.Unmerged` (#367) + * `git.status.Diff` (#364) + * `git status --short` support (#343) + * Performance and fault tolerance (#366) +* Removing IO.FileInfo extended properties (#369) +* Internationalization support (#177) +* New Functions: + * `Get-GitPrompt` (#368) + * `Get-GitOctal` (#370) + +To use the new prompt, you can simply: -* Git Functions Support! (#259) - * Any function or alias named git.* will be considered a git function - * git functions can be run in ugit implicitly (i.e. `git functions`) - * git functions can have parameters, accept arguments, and bind from the pipeline. - * We can get git functions with `Get-GitFunction` (#352) -* `git worktree list` support (#347) -* git status improvement (#341) - * Adding color ( Thanks @derekthecool !) - * Using Green for staged, Red for unstaged, Yellow for Untracked. -* Container Changes - * Fixing requirements (#348) - * Using DotNet SDK as base (#349) -* Workflow updates (#350) - * Updating upload-artifact - * Removing PSA from build -* Minor Updates - * `ugit.Piecemeal.ps1` now #requires Piecemeal (#344, Thanks @ninmonkey !) - * Community Guides (#329,#330,#331) +Set-Alias prompt git.prompt --- From ba4066dc268ce047db47f0d60ee9659f8f10b3cd Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:02 +0000 Subject: [PATCH 44/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/Get-GitOctal.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/Get-GitOctal.md diff --git a/docs/Get-GitOctal.md b/docs/Get-GitOctal.md new file mode 100644 index 00000000..dcb1789a --- /dev/null +++ b/docs/Get-GitOctal.md @@ -0,0 +1,28 @@ +Get-GitOctal +------------ + +### Synopsis +Gets Git Octal strings + +--- + +### Description + +Gets Git Octal strings as the current output encoding. + +--- + +### Parameters +#### **OctalString** +An octal string + +|Type |Required|Position|PipelineInput | +|----------|--------|--------|---------------------| +|`[String]`|false |1 |true (ByPropertyName)| + +--- + +### Syntax +```PowerShell +Get-GitOctal [[-OctalString] ] [] +``` From 8f5a5e122e09bc2cf8c8ebda34271bf954afc68f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:02 +0000 Subject: [PATCH 45/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/_data/Help/Get-GitOctal.json | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/_data/Help/Get-GitOctal.json diff --git a/docs/_data/Help/Get-GitOctal.json b/docs/_data/Help/Get-GitOctal.json new file mode 100644 index 00000000..8cd47e07 --- /dev/null +++ b/docs/_data/Help/Get-GitOctal.json @@ -0,0 +1,33 @@ +{ + "Synopsis": "Gets Git Octal strings", + "Description": "Gets Git Octal strings as the current output encoding.", + "Parameters": [ + { + "Name": null, + "Type": null, + "Description": "", + "Required": false, + "Position": 0, + "Aliases": null, + "DefaultValue": null, + "Globbing": false, + "PipelineInput": null, + "variableLength": false + } + ], + "Notes": [ + null + ], + "CommandType": "Function", + "Component": [ + null + ], + "Inputs": [ + null + ], + "Outputs": [ + null + ], + "Links": [], + "Examples": [] +} \ No newline at end of file From d2a490a30642a0df00e51efbc0a8b4d1976fad43 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:02 +0000 Subject: [PATCH 46/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/Get-GitPrompt.md | 144 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 docs/Get-GitPrompt.md diff --git a/docs/Get-GitPrompt.md b/docs/Get-GitPrompt.md new file mode 100644 index 00000000..c18cac6d --- /dev/null +++ b/docs/Get-GitPrompt.md @@ -0,0 +1,144 @@ +Get-GitPrompt +------------- + +### Synopsis +Git Prompt + +--- + +### Description + +Git friendly PowerShell prompt. + +Shows current branch, modified, untracked, added, and removed files. + +--- + +### Parameters +#### **BranchIcon** +The icon used for git branches. +By default `⑆` (OCR Branch Bank Identification [0x2446]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |1 |false | + +#### **SuccessIcon** +The prompt icon after a successful command. +By default, `≻` (Succeeds [0x227b]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |2 |false | + +#### **ErrorIcon** +By default, `≻` (Does not Succeed [0x2281]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |3 |false | + +#### **HomeIcon** +The home icon. +This is displayed when the path is +beneath the user home directory. +By default: `⌂` (House [0x2302]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |4 |false | + +#### **BranchOpenIcon** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |5 |false | + +#### **BranchCloseIcon** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |6 |false | + +#### **JobIcon** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |7 |false | + +#### **Slash** +The icon used for slash. +This will separate directories. +By default ` ⹊ ` (Dotted Solidus [0x2e4a]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |8 |false | + +#### **SuccessStyle** +The style to use when things succeed + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |9 |false | + +#### **ErrorStyle** +The style to use when things fail + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |10 |false | + +#### **WarningStyle** +The style to use when warning + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |11 |false | + +#### **InfoStyle** +The style to use when cyan + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |12 |false | + +#### **UnknownStyle** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |13 |false | + +#### **BoldStyle** +The style to use when bolding text. + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |14 |false | + +#### **BoldStyleOff** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |15 |false | + +#### **ResetStyle** +The string used to reset styles. + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |16 |false | + +#### **ShowHistoryId** +If set, will display the history ID + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Switch]`|false |named |false | + +--- + +### Syntax +```PowerShell +Get-GitPrompt [[-BranchIcon] ] [[-SuccessIcon] ] [[-ErrorIcon] ] [[-HomeIcon] ] [[-BranchOpenIcon] ] [[-BranchCloseIcon] ] [[-JobIcon] ] [[-Slash] ] [[-SuccessStyle] ] [[-ErrorStyle] ] [[-WarningStyle] ] [[-InfoStyle] ] [[-UnknownStyle] ] [[-BoldStyle] ] [[-BoldStyleOff] ] [[-ResetStyle] ] [-ShowHistoryId] [] +``` From fd5e5b6f4769dfa2c33f5360248ebd1cf778254d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:02 +0000 Subject: [PATCH 47/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/_data/Help/Get-GitPrompt.json | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/_data/Help/Get-GitPrompt.json diff --git a/docs/_data/Help/Get-GitPrompt.json b/docs/_data/Help/Get-GitPrompt.json new file mode 100644 index 00000000..2ce1d79c --- /dev/null +++ b/docs/_data/Help/Get-GitPrompt.json @@ -0,0 +1,33 @@ +{ + "Synopsis": "Git Prompt", + "Description": "Git friendly PowerShell prompt.\n\nShows current branch, modified, untracked, added, and removed files.", + "Parameters": [ + { + "Name": null, + "Type": null, + "Description": "", + "Required": false, + "Position": 0, + "Aliases": null, + "DefaultValue": null, + "Globbing": false, + "PipelineInput": null, + "variableLength": false + } + ], + "Notes": [ + null + ], + "CommandType": "Function", + "Component": [ + null + ], + "Inputs": [ + null + ], + "Outputs": [ + null + ], + "Links": [], + "Examples": [] +} \ No newline at end of file From 4d188ea34724a8f1d65e4aa793db2fc53b3222e4 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:04 +0000 Subject: [PATCH 48/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/git.octal.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/git.octal.md diff --git a/docs/git.octal.md b/docs/git.octal.md new file mode 100644 index 00000000..dcb1789a --- /dev/null +++ b/docs/git.octal.md @@ -0,0 +1,28 @@ +Get-GitOctal +------------ + +### Synopsis +Gets Git Octal strings + +--- + +### Description + +Gets Git Octal strings as the current output encoding. + +--- + +### Parameters +#### **OctalString** +An octal string + +|Type |Required|Position|PipelineInput | +|----------|--------|--------|---------------------| +|`[String]`|false |1 |true (ByPropertyName)| + +--- + +### Syntax +```PowerShell +Get-GitOctal [[-OctalString] ] [] +``` From c471b384fd5d800f69008d009ccfe4b4b4b7eb8e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:04 +0000 Subject: [PATCH 49/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/_data/Help/git.octal.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/_data/Help/git.octal.json diff --git a/docs/_data/Help/git.octal.json b/docs/_data/Help/git.octal.json new file mode 100644 index 00000000..8cd47e07 --- /dev/null +++ b/docs/_data/Help/git.octal.json @@ -0,0 +1,33 @@ +{ + "Synopsis": "Gets Git Octal strings", + "Description": "Gets Git Octal strings as the current output encoding.", + "Parameters": [ + { + "Name": null, + "Type": null, + "Description": "", + "Required": false, + "Position": 0, + "Aliases": null, + "DefaultValue": null, + "Globbing": false, + "PipelineInput": null, + "variableLength": false + } + ], + "Notes": [ + null + ], + "CommandType": "Function", + "Component": [ + null + ], + "Inputs": [ + null + ], + "Outputs": [ + null + ], + "Links": [], + "Examples": [] +} \ No newline at end of file From 2c8a9c165cd887d187a9e04a29a8c95838c9a8cc Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:05 +0000 Subject: [PATCH 50/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/git.prompt.md | 144 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 docs/git.prompt.md diff --git a/docs/git.prompt.md b/docs/git.prompt.md new file mode 100644 index 00000000..c18cac6d --- /dev/null +++ b/docs/git.prompt.md @@ -0,0 +1,144 @@ +Get-GitPrompt +------------- + +### Synopsis +Git Prompt + +--- + +### Description + +Git friendly PowerShell prompt. + +Shows current branch, modified, untracked, added, and removed files. + +--- + +### Parameters +#### **BranchIcon** +The icon used for git branches. +By default `⑆` (OCR Branch Bank Identification [0x2446]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |1 |false | + +#### **SuccessIcon** +The prompt icon after a successful command. +By default, `≻` (Succeeds [0x227b]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |2 |false | + +#### **ErrorIcon** +By default, `≻` (Does not Succeed [0x2281]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |3 |false | + +#### **HomeIcon** +The home icon. +This is displayed when the path is +beneath the user home directory. +By default: `⌂` (House [0x2302]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |4 |false | + +#### **BranchOpenIcon** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |5 |false | + +#### **BranchCloseIcon** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |6 |false | + +#### **JobIcon** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |7 |false | + +#### **Slash** +The icon used for slash. +This will separate directories. +By default ` ⹊ ` (Dotted Solidus [0x2e4a]) + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |8 |false | + +#### **SuccessStyle** +The style to use when things succeed + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |9 |false | + +#### **ErrorStyle** +The style to use when things fail + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |10 |false | + +#### **WarningStyle** +The style to use when warning + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |11 |false | + +#### **InfoStyle** +The style to use when cyan + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |12 |false | + +#### **UnknownStyle** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |13 |false | + +#### **BoldStyle** +The style to use when bolding text. + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |14 |false | + +#### **BoldStyleOff** + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |15 |false | + +#### **ResetStyle** +The string used to reset styles. + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |16 |false | + +#### **ShowHistoryId** +If set, will display the history ID + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Switch]`|false |named |false | + +--- + +### Syntax +```PowerShell +Get-GitPrompt [[-BranchIcon] ] [[-SuccessIcon] ] [[-ErrorIcon] ] [[-HomeIcon] ] [[-BranchOpenIcon] ] [[-BranchCloseIcon] ] [[-JobIcon] ] [[-Slash] ] [[-SuccessStyle] ] [[-ErrorStyle] ] [[-WarningStyle] ] [[-InfoStyle] ] [[-UnknownStyle] ] [[-BoldStyle] ] [[-BoldStyleOff] ] [[-ResetStyle] ] [-ShowHistoryId] [] +``` From ad587e00719fb7e8dcb10ca1f5bbb00f81e88183 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:05 +0000 Subject: [PATCH 51/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/_data/Help/git.prompt.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/_data/Help/git.prompt.json diff --git a/docs/_data/Help/git.prompt.json b/docs/_data/Help/git.prompt.json new file mode 100644 index 00000000..2ce1d79c --- /dev/null +++ b/docs/_data/Help/git.prompt.json @@ -0,0 +1,33 @@ +{ + "Synopsis": "Git Prompt", + "Description": "Git friendly PowerShell prompt.\n\nShows current branch, modified, untracked, added, and removed files.", + "Parameters": [ + { + "Name": null, + "Type": null, + "Description": "", + "Required": false, + "Position": 0, + "Aliases": null, + "DefaultValue": null, + "Globbing": false, + "PipelineInput": null, + "variableLength": false + } + ], + "Notes": [ + null + ], + "CommandType": "Function", + "Component": [ + null + ], + "Inputs": [ + null + ], + "Outputs": [ + null + ], + "Links": [], + "Examples": [] +} \ No newline at end of file From 122444dd37704f38690f2a4928f3389cad525a11 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 27 Oct 2026 21:10:17 +0000 Subject: [PATCH 52/52] release: ugit 0.4.7 Updating Release Notes and CHANGELOG --- docs/CHANGELOG.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 41469d48..de1501e9 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -6,6 +6,31 @@ > Love It? [Support It](https://github.com/sponsors/StartAutomating) +## ugit 0.4.7 + +* `git status` improvement + * `git.status.ahead` (#358) + * `git.status.behind` (#359) + * `git.status.modified` (#356) + * `git.status.deleted` (#357) + * `git.status.addded` (#361) + * `git.status` formatting improvement (#363) + * `git.status.WorkingDirectory` (#365) + * `git.status.Unmerged` (#367) + * `git.status.Diff` (#364) + * `git status --short` support (#343) + * Performance and fault tolerance (#366) +* Removing IO.FileInfo extended properties (#369) +* Internationalization support (#177) +* New Functions: + * `Get-GitPrompt` (#368) + * `Get-GitOctal` (#370) + +To use the new prompt, you can simply: + +Set-Alias prompt git.prompt + +--- ## ugit 0.4.6: