summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3eddda9)
raw | patch | inline | side by side (parent: 3eddda9)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 29 Jan 2007 07:52:06 +0000 (02:52 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 29 Jan 2007 07:52:06 +0000 (02:52 -0500) |
Rather than using HEAD for the current branch, use the actual name of
the current branch in the browser. This way the user knows what a
browser is browsing if they open up different browsers while on different
branches.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
the current branch in the browser. This way the user knows what a
browser is browsing if they open up different browsers while on different
branches.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 9892ec32aeff6e6cfbd7c2a8359833416fd5df76..fc74d9e6eaf2f624972a543f4edd06e06627d59b 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
set next_browser_id 0
-proc new_browser {} {
+proc new_browser {commit} {
global next_browser_id cursor_ptr
global browser_commit browser_status browser_stack browser_path browser_busy
set w .browser[incr next_browser_id]
set w_list $w.list.l
- set browser_commit($w_list) HEAD
+ set browser_commit($w_list) $commit
set browser_status($w_list) {Starting...}
set browser_stack($w_list) {}
set browser_path($w_list) $browser_commit($w_list):
.mbar.repository add command \
-label {Browse Current Branch} \
- -command new_browser \
+ -command {new_browser $current_branch} \
-font font_ui
.mbar.repository add separator