From: Shawn O. Pearce Date: Mon, 10 Aug 2009 15:26:11 GMT Subject: Re: Droppable Git Gui in Mac OS X Message-ID: <20090810152611.GR1033@spearce.org> In-Reply-To: Tobia Conforto wrote: > I noticed that Git Gui cannot be launched on an existing repository by > simply dragging the repository folder onto Git Gui's icon in the dock, > but this is a standard UI feature in OS X. > > Here is a fix "Git Gui.app" (which MacPorts installs in > /opt/local/share/git-gui/lib) to enable this feature. Interesting. Two comments: 1) Commit message? What should we record in the project history for this change? 2) Signed-off-by line? Please see git.git's SUBMITTING_PATCHES file for details of what this means, and why it is necessary: http://repo.or.cz/w/alt-git.git?a=blob;f=Documentation/SubmittingPatches;hb=HEAD > --- Git Gui.app/Contents/Info.plist > +++ Git Gui.app/Contents/Info.plist > @@ -24,5 +24,16 @@ > GITg > CFBundleVersion > 0.12.0 > + CFBundleDocumentTypes > + > + > + CFBundleTypeOSTypes > + > + fold > + > + CFBundleTypeRole > + Viewer > + > + > > > --- Git Gui.app/Contents/Resources/Scripts/AppMain.tcl > +++ Git Gui.app/Contents/Resources/Scripts/AppMain.tcl > @@ -19,4 +19,9 @@ > > unset gitexecdir gitguilib > set argv [lrange $argv 1 end] > -source $AppMain_source > + > +proc ::tk::mac::OpenDocument {args} { > + cd [lindex $args 0] > +} > + > +after 1 { source $AppMain_source } > > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Shawn.