Skip to content

Commit

Permalink
git-gui: Don't require a .pvcsrc to create Tools/Migrate menu hack
Browse files Browse the repository at this point in the history
The Tools/Migrate menu option is a hack just for me.  Yes, that's
right, git-gui has a hidden feature that really only works for me,
and the users that I support within my day-job's great firewall.
The menu option is not supported outside of that environment.

In the past we only enabled Tools/Migrate if our special local
script 'gui-miga' existed in the proper location, and if there
was a special '.pvcsrc' in the top level of the working directory.
This latter test for the '.pvcsrc' file is now failing, as the file
was removed from all Git repositories due to changes made to other
tooling within the great firewall's realm.

I have changed the test to only work on Cygwin, and only if the
special 'gui-miga' is present.  This works around the configuration
changes made recently within the great firewall's realm, but really
this entire Tools/Migrate thing should be abstracted out into some
sort of plugin system so other users can extend git-gui as they need.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Shawn O. Pearce committed Jun 27, 2007
1 parent fffaaba commit 7e508eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-gui.sh
Original file line number Diff line number Diff line change
@@ -1545,8 +1545,7 @@ if {[is_MacOSX]} {

# -- Tools Menu
#
if {[file exists /usr/local/miga/lib/gui-miga]
&& [file exists .pvcsrc]} {
if {[is_Cygwin] && [file exists /usr/local/miga/lib/gui-miga]} {
proc do_miga {} {
global ui_status_value
if {![lock_index update]} return

0 comments on commit 7e508eb

Please sign in to comment.