diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2011-02-22 20:28:36 +0100 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2011-02-24 00:11:45 +0000 |
commit | 4bfa2502f7e2dac52d8af46ee5abe0acf848607b (patch) | |
tree | 4c81ebdb7e7c553d2cb69513c3dc0da7c34a1b20 | |
parent | ba44692a2ecedacfc48c28fba642876d49dec90a (diff) | |
download | git-4bfa2502f7e2dac52d8af46ee5abe0acf848607b.tar.gz git-4bfa2502f7e2dac52d8af46ee5abe0acf848607b.tar.xz |
git-gui: fetch/prune all entry only for more than one entry
In case there is only one remote a fetch/prune all entry
is redundant.
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Tested-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
-rw-r--r-- | lib/remote.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/remote.tcl b/lib/remote.tcl index 42d206140..18d3d0658 100644 --- a/lib/remote.tcl +++ b/lib/remote.tcl @@ -237,13 +237,13 @@ proc update_all_remotes_menu_entry {} { set have_remote 0 foreach r $all_remotes { - set have_remote 1 + incr have_remote } set remote_m .mbar.remote set fetch_m $remote_m.fetch set prune_m $remote_m.prune - if {$have_remote} { + if {$have_remote > 1} { make_sure_remote_submenues_exist $remote_m set index [expr {[$fetch_m type 0] eq "tearoff" ? 1 : 0}] if {[$fetch_m entrycget $index -label] ne "All"} { |