git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: sverre@rabbelier.nl
Cc: "Dirk Süsserott" <newsletter@dirk.my1.cc>,
	"Git Mailing List" <git@vger.kernel.org>,
	"Junio C Hamano" <gitster@pobox.com>
Subject: Re: git gui: Possible to see which commands are executed?
Date: Tue, 20 May 2008 16:17:22 -0400	[thread overview]
Message-ID: <20080520201722.GF29038@spearce.org> (raw)
In-Reply-To: <bd6139dc0805201305k61807561k8026b4c6509e4041@mail.gmail.com>

Sverre Rabbelier <alturin@gmail.com> wrote:
> 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.

  reply	other threads:[~2008-05-20 20:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-18 12:03 git gui: Possible to see which commands are executed? Dirk Süsserott
2008-05-18 12:13 ` Miklos Vajna
2008-05-18 12:34   ` Dirk Süsserott
2008-05-19  2:21 ` Shawn O. Pearce
2008-05-20 19:03   ` Dirk Süsserott
2008-05-20 19:44     ` Shawn O. Pearce
2008-05-20 20:05       ` Sverre Rabbelier
2008-05-20 20:17         ` Shawn O. Pearce [this message]
2008-05-20 20:22           ` Sverre Rabbelier
2008-05-20 20:31             ` Shawn O. Pearce
2008-05-20 20:46               ` Sverre Rabbelier
2008-05-20 21:34               ` Junio C Hamano
2008-05-21  2:41                 ` Shawn O. Pearce
2008-05-21  8:30                   ` Johannes Schindelin
2008-05-21  9:27                     ` Karl Hasselström
2008-05-22 12:12                     ` Shawn O. Pearce
2008-05-22 20:55               ` Nigel Magnay
2008-05-22 23:05                 ` Shawn O. Pearce
2008-05-20 20:12       ` Dirk Süsserott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080520201722.GF29038@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=newsletter@dirk.my1.cc \
    --cc=sverre@rabbelier.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).