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 22, 2008, 23:05 UTC
Message-ID
<20080522230545.GR29038@spearce.org>
In-Reply-To
<320075ff0805221355y6d5dd4dcgdd12fad9582ea588@mail.gmail.com>
Nigel Magnay <nigel.magnay@gmail.com> wrote:
Show 5 quoted lines
> 
> git-gui is good though - but there's a few things I wish it had. I
> often find the need to flip between git gui and gitk (for a 'where the
> heck am I at the moment' overview) - the 2 tools seems to confuse
> people coming at git, even given 'visualize branch'.

Yup. I haven't tried to reimplement a visualizer in git-gui, nor have I tried to embed gitk into git-gui. Both would take a great deal of work I think (though embedding gitk is likely easier) and I just have too many things going on to pursue this myself. If someone showed patches for this, I'd definately try to get them included.

> It'd be nice to
> be able to add files / directories to .gitignore,

Always been a "wishlist" feature for git-gui. Paul Mackerras' gitool prototype (which is what seeded git-gui) had this feature, but it was never carried into git-gui. Again, patches welcome. :-)

> and to view the
> staged/unstaged changes as trees - helpful for when a build has
> created a non-ignored directory with thousands of files.

Yea. And when that happens to me I immediately slap the directory into my .gitignore or .git/info/exclude and rescan to make the huge pile of untracked files disappear. So a tree view in git-gui has never been something I wanted. Trees in Tcl/Tk are also horrible to implement. The toolkit just has never been very good at that sort of thing.

> Maybe I
> should get qgit - but git gui has the massive advantage of being in
> every install by default, and so is available in msysgit.

Yes, I have to admit that git-gui's popularity among git users has a _lot_ to do with the simple fact that it ships out of the box as part of Junio's git releases. Since most git users have Tcl/Tk available so they can use gitk, git-gui is also ready-to-go, with no extra libs needed on your system.

However, QGit is also a good program, and has many loyal users.
There are benefits and drawbacks to both GUIs.
 
> Whilst I'm thinking about it - I'm surprised in retrospect how little
> prominence the index is given in the frontends I've seen.
Really?  git-gui is all about the index.
> It's easy,
> coming from SVN, to gloss over the index as the same as just checking
> off files at commit time, and miss stuff like 'git add --patch' and
> 'git mergetool' altogether.

Right click on a hunk in the diff pane in git-gui and stage/unstage it? Its about as good as `git add --patch`. Or better, depending on how you work.

-- 
Shawn.
Previous: Nigel MagnayNext: Dirk Süsserott
Message 18 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.