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