git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonas Fonseca <fonseca@diku.dk>
To: Jeff King <peff@peff.net>
Cc: Erik Colson <eco@ecocode.net>, git@vger.kernel.org
Subject: Re: git-gui console app ?
Date: Fri, 10 Aug 2007 15:31:32 +0200	[thread overview]
Message-ID: <20070810133132.GA3770@diku.dk> (raw)
In-Reply-To: <20070805101953.GI12507@coredump.intra.peff.net>

Jeff King <peff@peff.net> 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

  reply	other threads:[~2007-08-10 13:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-04 10:10 git-gui console app ? Erik Colson
2007-08-04 11:29 ` Johannes Schindelin
2007-08-04 11:53   ` Erik Colson
2007-08-04 12:03     ` Jeff King
2007-08-04 12:38       ` Erik Colson
2007-08-04 18:38         ` Junio C Hamano
2007-08-05 10:19         ` Jeff King
2007-08-10 13:31           ` Jonas Fonseca [this message]
2007-08-10 14:21             ` Jeff King
2007-08-11 10:11               ` Jonas Fonseca
2007-08-10 14:25             ` Erik Colson
2007-08-11 10:22               ` Jonas Fonseca
2007-08-07 14:21 ` David Kågedal
2007-08-07 15:18   ` Erik Colson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070810133132.GA3770@diku.dk \
    --to=fonseca@diku.dk \
    --cc=eco@ecocode.net \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).