git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New gitk feature - show where a line came from
@ 2008-10-27 11:47 Paul Mackerras
  0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2008-10-27 11:47 UTC (permalink / raw)
  To: git

I have just pushed out some commits for gitk which add a feature that
I have wanted for a long time - a way to point at a line in gitk and
say "where did that come from" and have gitk show you the answer.  You
can now right-click on a line in the diff/file display pane (bottom
left) and select "Show origin of this line".  Gitk will run a one-line
git blame on that line, and once the answer comes back, it will select
the commit that added that line, highlight the line with a light-blue
background, and scroll so that the line is visible.  This works both
when displaying diffs and when displaying files.

There are still some minor rough edges, but I'd be interested in
hearing whether it's useful to people, or if people have problems
using it.

This builds on the work done by Alexander Gavrilov, who added the
context menu for the diff/file display pane and a menu item to start
an external git gui blame on a file.

Paul.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-27 11:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27 11:47 New gitk feature - show where a line came from Paul Mackerras

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