Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Showing tag instead of branch name with EnableFileStatus disabled

22 views
Skip to first unread message

Thomas G. Mayfield

unread,
Feb 9, 2012, 1:26:42 PM2/9/12
to posh-git
Notes:
- Using posh-get installed using psget today
- The build server tags git with versions, so most revisions on master
have a build version tag
- I have $global:GitPromptSettings.EnableFileStatus disabled because
it's too slow to check
- With $global:GitPromptSettings.EnableFileStatus set to false, I get
the tag name instead of the branch in my prompt:

C:\Data\Code\Scheck\ScheckTrac.NET.local [(1.8.96.0)]> git checkout
master
Already on 'master'
C:\Data\Code\Scheck\ScheckTrac.NET.local [(1.8.96.0)]> $GitStatus
Branch : (1.8.96.0)
Working : {}
Index : {}
BehindBy : 0
HasUntracked : False
HasWorking : False
AheadBy : 0
GitDir : C:\Data\Code\Scheck\ScheckTrac.NET.local\.git
HasIndex : False

C:\Data\Code\Scheck\ScheckTrac.NET.local [(1.8.96.0)]>
$global:GitPromptSettings.EnableFileStatus = $true
C:\Data\Code\Scheck\ScheckTrac.NET.local [master]>
Reply all
Reply to author
Forward
0 new messages