Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: Parse off refs/remotes when showing current branch.
[gitweb.git]
/
git-gui
diff --git
a/git-gui
b/git-gui
index 69ebd90958acaa488e3c06a560e4454ecd8d8c27..48e781dd3011451264b4d4c0ea11ee127c36476e 100755
(executable)
--- a/
git-gui
+++ b/
git-gui
@@
-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