From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn O. Pearce" Subject: Re: git gui: Possible to see which commands are executed? Date: Tue, 20 May 2008 16:31:53 -0400 Message-ID: <20080520203153.GH29038@spearce.org> References: <48301B17.30309@dirk.my1.cc> <20080519022125.GV29038@spearce.org> <4833206E.1080300@dirk.my1.cc> <20080520194403.GC29038@spearce.org> <20080520201722.GF29038@spearce.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Dirk =?utf-8?Q?S=C3=BCsserott?= , Git Mailing List , Junio C Hamano To: sverre@rabbelier.nl X-From: git-owner@vger.kernel.org Tue May 20 22:33:04 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JyYW2-0006AO-GQ for gcvg-git-2@gmane.org; Tue, 20 May 2008 22:32:58 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759604AbYETUcG (ORCPT ); Tue, 20 May 2008 16:32:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759569AbYETUcG (ORCPT ); Tue, 20 May 2008 16:32:06 -0400 Received: from corvette.plexpod.net ([64.38.20.226]:45465 "EHLO corvette.plexpod.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759219AbYETUcE (ORCPT ); Tue, 20 May 2008 16:32:04 -0400 Received: from cpe-74-70-48-173.nycap.res.rr.com ([74.70.48.173] helo=asimov.home.spearce.org) by corvette.plexpod.net with esmtpa (Exim 4.68) (envelope-from ) id 1JyYUw-0002ey-4V; Tue, 20 May 2008 16:31:50 -0400 Received: by asimov.home.spearce.org (Postfix, from userid 1000) id 15B9A20FBAE; Tue, 20 May 2008 16:31:53 -0400 (EDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - corvette.plexpod.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - spearce.org Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Sverre Rabbelier wrote: > > > > That is probably difficult. Some of the code internally is more > > about stringing the right sequence of plumbing together than it > > is about a particular user action. I think it would take a bit of > > work to make it do this, and I just don't see a reason to do it. > > The reason would be to make the switch from using git-gui only to > using the commandline too... the again, it'd be cutting your own hand > (or is it "throat" in English...) to make that transition easier. I'm not worried about users leaving git-gui. Hell, if git-gui was just git on training wheels and all git users left git-gui after a while for the command line that would be telling as it says the graphical interface is not desired. Or that git-gui's interface is not well suited to the task. Far from it. Some users like git-gui for its ability to show the modified files, and let you stage/unstage individual hunks. Others like its ability to perform checkout+pull in one mouse click. Many like to point at things with a rodent than to use the keyboard and enter (to them) isoteric commands. Right now there are really only two git GUIs; git-gui and QGit. Each has its strengths. Maybe this time next year we will have a 3rd; name yet to be determined but it would come out of the egit/jgit project as a stand-alone SWT/Java based Git UI. > > CVS clients that show CVS commands can easily do so, because they > > are directly executing the commands they show you. This is likely > > also true of SVN commands. But git-gui on Git, that's a whole > > different animal. > > Ah, I didn't realise git-gui does stuff that you can't really do > through the regular porcelain. In that case it would indeed be > impossible to print the regular porcelain commands. I think the > '--trace' option should be advertised as 'debugging option' so that > the user can see what is going on in the case something goes wrong > perhaps? Yes. I'll send Junio a patch for Documentation/git-gui.txt and describe it as a debugging option, and also mention that the commands it displays aren't all meant to be invoked by mortals. -- Shawn.