We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac91ce commit 2ce9f59Copy full SHA for 2ce9f59
lib/actions/Git-NumberedDiff.ps1
@@ -32,6 +32,10 @@ function Git-NumberedDiff {
32
##############################################################################
33
function Git-NumberedDiffCached {
34
if ($args.length -eq 0 -or $args[0] -eq $null) {
35
+ if ($global:gitStatusNumbers.stagingArea.length -eq 0) {
36
+ Write-Host "Staging area is empty."
37
+ return
38
+ }
39
$args = @("0-$($global:gitStatusNumbers.stagingArea.length - 1)")
40
}
41
0 commit comments