Jeff King <peff@xxxxxxxx> wrote Sun, Aug 05, 2007: > 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html