git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git gui: Possible to see which commands are executed?

From
Junio C Hamano <gitster@pobox.com>
Date
May 20, 2008, 21:34 UTC
Message-ID
<7v3aoc8xtg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080520203153.GH29038@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 43 quoted lines
> Sverre Rabbelier <alturin@gmail.com> 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.
Probably --trace should be renamed to --debug then?
Previous: Sverre RabbelierNext: Shawn O. Pearce
Message 12 of 19 in “git gui: Possible to see which commands are executed?”
  1. Dirk SüsserottMay 18, 2008
  2. Miklos VajnaMay 18, 2008
  3. Dirk SüsserottMay 18, 2008
  4. Shawn O. PearceMay 19, 2008
  5. Dirk SüsserottMay 20, 2008
  6. Shawn O. PearceMay 20, 2008
  7. Sverre RabbelierMay 20, 2008
  8. Shawn O. PearceMay 20, 2008
  9. Sverre RabbelierMay 20, 2008
  10. Shawn O. PearceMay 20, 2008
  11. Sverre RabbelierMay 20, 2008
  12. Junio C HamanoMay 20, 2008
  13. Shawn O. PearceMay 21, 2008
  14. Johannes SchindelinMay 21, 2008
  15. Karl HasselströmMay 21, 2008
  16. Shawn O. PearceMay 22, 2008
  17. Nigel MagnayMay 22, 2008
  18. Shawn O. PearceMay 22, 2008
  19. Dirk SüsserottMay 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.