diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-06-11 00:52:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-11 00:52:43 -0700 |
commit | 75d8ff138dd640a117c6aaa625d0f6b835adbd3a (patch) | |
tree | 3fe3467ed5b90dfef595a324a7134cb2b6f192ef /git-gui/lib/remote.tcl | |
parent | 27c1dbea3e3a23b3c4b3707dfc9a71c3279ae279 (diff) | |
parent | 32af629ab57869f96f282e7f7839e84d1b8e22ca (diff) | |
download | git-75d8ff138dd640a117c6aaa625d0f6b835adbd3a.tar.gz |
Merge branch 'master' of git://repo.or.cz/git-gui
* 'master' of git://repo.or.cz/git-gui:
git-gui: Internalize symbolic-ref HEAD reading logic
git-gui: Expose the merge.diffstat configuration option
git-gui: Allow users to delete remote branches
git-gui: Allow users to rename branches through 'branch -m'
git-gui: Disable tearoff menus on Windows, Mac OS X
git-gui: Provide fatal error if library is unavailable
git-gui: Enable verbose Tcl loading earlier
git-gui: Show the git-gui library path in 'About git-gui'
git-gui: GUI support for running 'git remote prune <name>'
git gui 0.8.0
Diffstat (limited to 'git-gui/lib/remote.tcl')
-rw-r--r-- | git-gui/lib/remote.tcl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/git-gui/lib/remote.tcl b/git-gui/lib/remote.tcl index 99f353ed7d..b54824ab72 100644 --- a/git-gui/lib/remote.tcl +++ b/git-gui/lib/remote.tcl @@ -95,6 +95,7 @@ proc populate_fetch_menu {} { global all_remotes repo_config set m .mbar.fetch + set prune_list [list] foreach r $all_remotes { set enable 0 if {![catch {set a $repo_config(remote.$r.url)}]} { @@ -115,11 +116,21 @@ proc populate_fetch_menu {} { } if {$enable} { + lappend prune_list $r $m add command \ -label "Fetch from $r..." \ -command [list fetch_from $r] } } + + if {$prune_list ne {}} { + $m add separator + } + foreach r $prune_list { + $m add command \ + -label "Prune from $r..." \ + -command [list prune_from $r] + } } proc populate_push_menu {} { |