summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-03 22:57:18 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-07-08 21:12:46 -0400
commitb1fa2bfff36933f94dada476ba5b3d3cb894b723 (patch)
tree3f875ad1c48e70502e1f6ca008c917d4396645b6 /git-gui.sh
parent6233ab17297684c0049923cb8492393276672b01 (diff)
downloadgit-b1fa2bfff36933f94dada476ba5b3d3cb894b723.tar.xz
git-gui: Abstract the revision picker into a mega widget
This rather large change pulls the "Starting Revision" part of the new branch dialog into a mega widget that we can use anytime we need to select a commit SHA-1. To make use of the mega widget I have also refactored the branch dialog to use the class system, much like the delete remote branch dialog already does. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-gui.sh b/git-gui.sh
index c36a986b77..e07f4babd0 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1496,7 +1496,7 @@ if {[is_enabled branch]} {
menu .mbar.branch
.mbar.branch add command -label {Create...} \
- -command do_create_branch \
+ -command branch_create::dialog \
-accelerator $M1T-N
lappend disable_on_lock [list .mbar.branch entryconf \
[.mbar.branch index last] -state]
@@ -2221,8 +2221,8 @@ bind $ui_diff <Control-Key-f> {catch {%W yview scroll 1 pages};break}
bind $ui_diff <Button-1> {focus %W}
if {[is_enabled branch]} {
- bind . <$M1B-Key-n> do_create_branch
- bind . <$M1B-Key-N> do_create_branch
+ bind . <$M1B-Key-n> branch_create::dialog
+ bind . <$M1B-Key-N> branch_create::dialog
}
if {[is_enabled transport]} {
bind . <$M1B-Key-p> do_push_anywhere