diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2006-11-25 02:45:19 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2006-11-25 02:45:19 -0500 |
commit | d90d83a3a95e5fb4672906589ac0a19c19f1187b (patch) | |
tree | de0823ba956d381dcca7d288d5771956cf5d5d40 /git-gui | |
parent | 700a65ce380f29a5083bcc230aa1ef5c28e66f2c (diff) | |
download | git-d90d83a3a95e5fb4672906589ac0a19c19f1187b.tar.gz git-d90d83a3a95e5fb4672906589ac0a19c19f1187b.tar.xz |
git-gui: Parse off refs/remotes when showing current branch.
Even though the user shouldn't have a remote branch checked out, if
they do we should still show as short of the branch name as possible.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
-rwxr-xr-x | git-gui | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -266,7 +266,7 @@ proc repository_state {ctvar hdvar mhvar} { if {[catch {set current_branch [exec git symbolic-ref HEAD]}]} { set current_branch {} } else { - regsub ^refs/(heads|tags)/ \ + regsub ^refs/((heads|tags|remotes)/)? \ $current_branch \ {} \ current_branch |