Files
OpenRGB/scripts/git-get-branch.ps1
2025-01-17 08:12:32 -06:00

3 lines
136 B
PowerShell

$HASH = git log --pretty=%h -1
git show-ref | select-string $HASH | select-string -NotMatch HEAD | foreach {$_ -replace '.*/(.*)','$1'}