git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-gui blame: show previous commit
@ 2007-07-29  9:26 Florian Weimer
  2007-07-29 11:40 ` Johannes Schindelin
  2007-07-29 22:53 ` Jakub Narebski
  0 siblings, 2 replies; 4+ messages in thread
From: Florian Weimer @ 2007-07-29  9:26 UTC (permalink / raw)
  To: git

How can I view the previous commit touching a specific line, so that I
can see what was there before?  For instance, the change could be
whitespace-only, so that I want to dig deeper.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-gui blame: show previous commit
  2007-07-29  9:26 git-gui blame: show previous commit Florian Weimer
@ 2007-07-29 11:40 ` Johannes Schindelin
  2007-07-30  3:43   ` Shawn O. Pearce
  2007-07-29 22:53 ` Jakub Narebski
  1 sibling, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2007-07-29 11:40 UTC (permalink / raw)
  To: Florian Weimer; +Cc: git

Hi,

On Sun, 29 Jul 2007, Florian Weimer wrote:

> How can I view the previous commit touching a specific line, so that I
> can see what was there before?  For instance, the change could be
> whitespace-only, so that I want to dig deeper.

If you want to ignore whitespace changes, try the option "-w" to "git 
blame".  I have no idea if "git-gui blame" can use that option, but it 
should not be hard for you to find out, and provide a patch if it does 
not yet.

Hth,
Dscho

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-gui blame: show previous commit
  2007-07-29  9:26 git-gui blame: show previous commit Florian Weimer
  2007-07-29 11:40 ` Johannes Schindelin
@ 2007-07-29 22:53 ` Jakub Narebski
  1 sibling, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2007-07-29 22:53 UTC (permalink / raw)
  To: git

Florian Weimer wrote:

> How can I view the previous commit touching a specific line, so that I
> can see what was there before?  For instance, the change could be
> whitespace-only, so that I want to dig deeper.

You can always use "git blame -L<lineno>,+1 <revision> -- <file>". Or use
pickaxe search, i.e. "git log -S'<fragment>' <revision> -- <file>".

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-gui blame: show previous commit
  2007-07-29 11:40 ` Johannes Schindelin
@ 2007-07-30  3:43   ` Shawn O. Pearce
  0 siblings, 0 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2007-07-30  3:43 UTC (permalink / raw)
  To: Florian Weimer; +Cc: Johannes Schindelin, git

Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> On Sun, 29 Jul 2007, Florian Weimer wrote:
> 
> > How can I view the previous commit touching a specific line, so that I
> > can see what was there before?  For instance, the change could be
> > whitespace-only, so that I want to dig deeper.
> 
> If you want to ignore whitespace changes, try the option "-w" to "git 
> blame".  I have no idea if "git-gui blame" can use that option, but it 
> should not be hard for you to find out, and provide a patch if it does 
> not yet.

gitgui-0.7.4-35-ga840566 is a change from Junio to enable the
-w flag to git-blame if the underlying git is 1.5.3 or later.
So you'd need a pretty recent git-gui and a 1.5.3-rc0 or later
git binary underneath of it to get -w enabled in blame.  But it is
there for the original line annotation pass (the second blame pass
but first column displayed).

I keep meaning to add a "Show parent commit" in the context menu
of the blame viewer, but I haven't gotten around to it yet.
It has been requested a few times, just hasn't been done yet.
Maybe someone who wants it will submit a patch.  ;-)

In really recent git-gui (gitgui-0.7.5-76-g8e891fa and later) you
can browse any revision you want, so you could copy the commit SHA-1
from the lower pane and paste it in as "$sha1^" into the revision
expression field of the browse dialog, navigate to the file and
open the blame viewer.  That is really annoying, and doesn't jump
you to the correct lines automatically.  But it is possible to view
the parent.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-30  3:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29  9:26 git-gui blame: show previous commit Florian Weimer
2007-07-29 11:40 ` Johannes Schindelin
2007-07-30  3:43   ` Shawn O. Pearce
2007-07-29 22:53 ` Jakub Narebski

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).