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

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

From
Shawn O. Pearce <spearce@spearce.org>
Date
May 20, 2008, 20:17 UTC
Message-ID
<20080520201722.GF29038@spearce.org>
In-Reply-To
<bd6139dc0805201305k61807561k8026b4c6509e4041@mail.gmail.com>
Sverre Rabbelier <alturin@gmail.com> wrote:
Show 10 quoted lines
> On Tue, May 20, 2008 at 9:44 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
> > Junio defers almost all git-gui things to me, as I am the current
> > maintainer of git-gui.  You are right, it doesn't really hurt to
> > include it, and now that it is written, the hard part is already
> > done.  I'll apply it to my main git-gui tree and ask Junio to
> > include it in a future version of Git.
> 
> Hmmm, maybe you should include in big red letters that the output from
> --trace in no way or form represents commands that a user should use
> daily?
Yea, probably.
> I can hear the questions on #git already "I don't understand,
> I've used git-gui for months now, but the command it tells me to use
> make no sense!".

Yup. Or even worse, a user thinking that the best way to create a new commit on the command line is the ugly sequence of:

	git-write-tree
	git-commit-tree ... -p ... <msg
	git-update-ref HEAD ...

Gee, that's like Git on the day when it became self-hosting and Linus created commit e83c5163316f89bfbde7d9ab23ca2e25604af290 ('Initial revision of "git", the information manager from hell').

> Even better of course would be to not only print the plumbing commands
> but also the porcelain commands!

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.

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.

-- 
Shawn.
Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 8 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.