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

Re: git-gui console app ?

From
Jonas Fonseca <fonseca@diku.dk>
Date
Aug 10, 2007, 13:31 UTC
Message-ID
<20070810133132.GA3770@diku.dk>
In-Reply-To
<20070805101953.GI12507@coredump.intra.peff.net>
Jeff King <peff@peff.net> wrote Sun, Aug 05, 2007:
Show 18 quoted lines
> On Sat, Aug 04, 2007 at 02:38:34PM +0200, Erik Colson wrote:
> 
> > > By default, it will show the changes between your working tree and the
> > > index (i.e., changed but not updated). You can show the diff of "updated
> > > but not commited" with "git-diff --cached".
> > 
> > yep that is the info I would like to browse in a way git-gui does it...
> > showing a list of the files in the diff, and letting the user select a
> > file to show the part of the diff for that file.
> 
> Ah, I see. There is a status mode for tig (tig -S), but you can't jump
> to the diff of a particular file. It shouldn't be that difficult to add
> for somebody familiar with the tig codebase, but I am not such a
> somebody.
> 
> Jonas, am I right that this should be a one-liner? If you can point me
> in the right direction, I can try to take a closer look, but I'm having
> trouble following the code.

Not quite a one-liner, but I've implemented something that will show diffs of staged/unstaged changes as well as the content of untracked files when pressing Enter on a file in the status view. To update the status of a file (unstaged->staged, untracked->staged, etc) you now have to press 'u'.

Hope this helps.
-- 
Jonas Fonseca
Previous: Jeff KingNext: Jeff King
Message 8 of 14 in “git-gui console app ?”
  1. Erik ColsonAug 4, 2007
  2. Johannes SchindelinAug 4, 2007
  3. Erik ColsonAug 4, 2007
  4. Jeff KingAug 4, 2007
  5. Erik ColsonAug 4, 2007
  6. Junio C HamanoAug 4, 2007
  7. Jeff KingAug 5, 2007
  8. Jonas FonsecaAug 10, 2007
  9. Jeff KingAug 10, 2007
  10. Jonas FonsecaAug 11, 2007
  11. Erik ColsonAug 10, 2007
  12. Jonas FonsecaAug 11, 2007
  13. David KågedalAug 7, 2007
  14. Erik ColsonAug 7, 2007

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.