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

Re: git-gui console app ?

From
Jeff King <peff@peff.net>
Date
Aug 5, 2007, 10:19 UTC
Message-ID
<20070805101953.GI12507@coredump.intra.peff.net>
In-Reply-To
<20070804123834.GA3036@Mac2.local>
On Sat, Aug 04, 2007 at 02:38:34PM +0200, Erik Colson wrote:
Show 7 quoted lines
> > 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.

-Peff
Previous: Junio C HamanoNext: Jonas Fonseca
Message 7 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.