@matheusbsbs / matheus-bagliano / commits / 854ffd3046
Fork 0

git-gui: Completely remove my Tools/Migrate hack

This menu option of Tools/Migrate has been living inside of git-gui as a local hack to support some coworkers of mine. It has no value to anyone outside of my day-job team and never really should have been in a release version of git-gui. So I'm pulling it out, so that nobody else has to deal with this garbage. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jul 21, 2007 at 16:32 UTC 854ffd3046ba9776934ffea79c5aceb1d51cf3c5
1 file changed -29
git-gui.sh
-29
@@ -1895,35 +1895,6 @@ if {[is_MacOSX]} {
1895 .mbar.edit add separator
1896 .mbar.edit add command -label {Options...} \
1897 -command do_options
1898 -
1899 - # -- Tools Menu
1900 - #
1901 - if {[is_Cygwin]
1902 - && [is_enabled multicommit]
1903 - && [file exists /usr/local/miga/lib/gui-miga]} {
1904 - proc do_miga {} {
1905 - if {![lock_index update]} return
1906 - set cmd [list sh --login -c "/usr/local/miga/lib/gui-miga \"[pwd]\""]
1907 - set miga_fd [open "|$cmd" r]
1908 - fconfigure $miga_fd -blocking 0
1909 - fileevent $miga_fd readable [list miga_done $miga_fd]
1910 - ui_status {Running miga...}
1911 - }
1912 - proc miga_done {fd} {
1913 - read $fd 512
1914 - if {[eof $fd]} {
1915 - close $fd
1916 - unlock_index
1917 - rescan ui_ready
1918 - }
1919 - }
1920 - .mbar add cascade -label Tools -menu .mbar.tools
1921 - menu .mbar.tools
1922 - .mbar.tools add command -label "Migrate" \
1923 - -command do_miga
1924 - lappend disable_on_lock \
1925 - [list .mbar.tools entryconf [.mbar.tools index last] -state]
1926 - }
1898 }
1899
1900 # -- Help Menu