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

Re: [PATCH] gitk: add user-defined custom commands

From
Johannes Sixt <j6t@kdbg.org>
Date
Aug 11, 2026, 18:43 UTC
Message-ID
<84dd36eb-bc7c-4a35-b0c3-238e6d3c08ed@kdbg.org>
In-Reply-To
<ba558d0c5e08190b4a130efe43b5644c8c0bd571.camel@gmx.net>
Am 10.08.26 um 21:38 schrieb Tim Wiederhake:
Show 5 quoted lines
> I think there may be a misunderstanding about what this patch does. I
> am not proposing "add an edit-file button to gitk." I am proposing "let
> users add their own commands to the context menus." The rebase+edit
> workflow was an example of what becomes possible. It is not the feature
> itself.

I totally understand that you are proposing a way to supply generic commands, and I do not ask for something else, but I was a bit too terse in what I said. I meant to say that you can use "invoke an editor" as the justification for the generic command that is called from the diff panel. And "git rebase" can be a justification for a generic command called from the commit list. (These two kinds of commands should really be added in separate steps, BTW.)

> Shipping it with only %f but not %i or %t would produce a half-useful
> extension system that nobody can actually use, existing only to satisfy
> the review process.

You already get something very useful with only the %f (filename) substitution, because it can invoke an editor with a suitable file.

Do not underestimate the review process. Presenting the features in digestible pieces is absolutely beneficial. The substitutions lend themselves to be their own commits each (or in small groups per commit).

-- Hannes
Previous: Tim WiederhakeNext: Junio C Hamano
Message 6 of 9 in “gitk: add user-defined custom commands”
  1. gitk: add user-defined custom commandsTim Wiederhake via GitGitGadget, Aug 4, 2026
  2. Johannes SixtAug 5, 2026
  3. Tim WiederhakeAug 7, 2026
  4. Johannes SixtAug 9, 2026
  5. Tim WiederhakeAug 10, 2026
  6. Johannes SixtAug 11, 2026
  7. Junio C HamanoAug 7, 2026
  8. Johannes SixtAug 9, 2026
  9. Tim WiederhakeAug 10, 2026

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.