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

Re: [PATCH] gitk: let you easily specify lines of context in diff view

From
Paul Mackerras <paulus@samba.org>
Date
Jul 26, 2007, 12:34 UTC
Message-ID
<18088.38093.876993.410483@cargo.ozlabs.ibm.com>
In-Reply-To
<11854367692095-git-send-email-prohaska@zib.de>
Steffen Prohaska writes:
> More lines of context sometimes help to better understand a diff.
> This patch introduces a text field above the box displaying the
> blobdiffs. You can type in the number of lines of context that
> you wish to view.

Nice idea! I suggest you use a spinbox instead of an entry though, since that has up and down buttons, and allows you to restrict the value to an integer.

>    * I don't know how to update the view after entering a new value. 

You can put a trace on the associated variable and specify a function to be called when the variable's value changes. Grep for "trace add variable" in gitk to see how it's done.

Paul.
Previous: Steffen ProhaskaNext: Steffen Prohaska
Message 2 of 10 in “gitk: let you easily specify lines of context in diff view”
  1. gitk: let you easily specify lines of context in diff viewSteffen Prohaska, Jul 26, 2007
  2. Paul MackerrasJul 26, 2007
  3. Steffen ProhaskaJul 27, 2007
  4. Paul MackerrasJul 27, 2007
  5. gitk: let you easily specify lines of context in diff viewSteffen Prohaska, Jul 27, 2007
  6. gitk: let you easily specify lines of context in diff viewSteffen Prohaska, Jul 28, 2007
  7. gitk: let you easily specify lines of context in diff viewSteffen Prohaska, Aug 11, 2007
  8. Paul MackerrasAug 12, 2007
  9. Steffen ProhaskaAug 12, 2007
  10. gitk: let you easily specify lines of context in diff viewSteffen Prohaska, Aug 12, 2007

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.