git/list[1] front-page[2] threads[3] people[4] search[5] about
 

New gitk feature - show where a line came from

From
Paul Mackerras <paulus@samba.org>
Date
Oct 27, 2008, 11:47 UTC
Message-ID
<18693.43627.381786.934151@cargo.ozlabs.ibm.com>

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.
Message 1 of 1 in “New gitk feature - show where a line came from”
  1. Paul MackerrasOct 27, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.