summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf25ddc)
raw | patch | inline | side by side (parent: cf25ddc)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 8 Feb 2007 23:10:05 +0000 (18:10 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 8 Feb 2007 23:10:05 +0000 (18:10 -0500) |
These are now controlled by the transport and branch options, rather
than the multicommit option.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
than the multicommit option.
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 8305720d532fbed05a70787980911938c79a2c67..50bcd112357ded71e42735133d9ca5a2dc6321ec 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
end]
enable_option multicommit
+enable_option branch
+enable_option transport
+
if {[appname] eq {git-citool}} {
disable_option multicommit
+ disable_option branch
+ disable_option transport
}
######################################################################
$ui_comm edit modified false
}
- if {[is_enabled multicommit]} {
+ if {[is_enabled branch]} {
load_all_heads
populate_branch_menu
}
menu .mbar -tearoff 0
.mbar add cascade -label Repository -menu .mbar.repository
.mbar add cascade -label Edit -menu .mbar.edit
-if {[is_enabled multicommit]} {
+if {[is_enabled branch]} {
.mbar add cascade -label Branch -menu .mbar.branch
}
.mbar add cascade -label Commit -menu .mbar.commit
-if {[is_enabled multicommit]} {
+if {[is_enabled transport]} {
.mbar add cascade -label Merge -menu .mbar.merge
.mbar add cascade -label Fetch -menu .mbar.fetch
.mbar add cascade -label Push -menu .mbar.push
# -- Branch Menu
#
-if {[is_enabled multicommit]} {
+if {[is_enabled branch]} {
menu .mbar.branch
.mbar.branch add command -label {Create...} \
pack .branch.cb -side left -fill x
pack .branch -side top -fill x
-if {[is_enabled multicommit]} {
+if {[is_enabled branch]} {
menu .mbar.merge
.mbar.merge add command -label {Local Merge...} \
-command do_local_merge \
bind $ui_diff <Key-Right> {catch {%W xview scroll 1 units};break}
bind $ui_diff <Button-1> {focus %W}
-if {[is_enabled multicommit]} {
+if {[is_enabled branch]} {
bind . <$M1B-Key-n> do_create_branch
bind . <$M1B-Key-N> do_create_branch
}
# -- Only initialize complex UI if we are going to stay running.
#
-if {[is_enabled multicommit]} {
+if {[is_enabled transport]} {
load_all_remotes
load_all_heads