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

Getting gitk to display all refs but stgit logs

From
Yann Dirson <ydirson@altern.org>
Date
Jan 8, 2007, 21:32 UTC
Message-ID
<20070108213259.GB17093@nan92-1-81-57-214-146.fbx.proxad.net>

Since v0.11, StGIT creates references to keep a hand on patch logs. This has the unfortunate side-effect that "gitk --all" suddenly shows all those very annoying, and soon becomes unusable on repositories for which was very convenient.

I guess it would be acceptable to have stgit itself launch gitk with the correct options.

The only way I could find to suppress these refs from the display is to find the refs ourselves and pipe them to gitk using --stdin:

 find .git/refs/ -type f -not -name '*.log' -printf '%P\n'|gitk --stdin

Unfortunately, requesting an update from gitk then behaves as if nothing had been given on command-line (obviously it is passing --stdin to git-rev-list without repeating the data).

We could do slightly better by enclosing the find in backquotes on the gitk command-line, but that would still hide new refs to git-rev-list when updating the graph.

Is there a better way already, or should we work on something specific here ? A possible solution I think of could be to call something like:

 gitk --stdin-command="find .git/refs/ -type f -not -name '*.log' -printf '%P\n'"
Best regards,
-- 
Yann.
Next: Marco Costalba
Message 1 of 4 in “Getting gitk to display all refs but stgit logs”
  1. Yann DirsonJan 8, 2007
  2. Marco CostalbaJan 9, 2007
  3. Yann DirsonJan 9, 2007
  4. Marco CostalbaJan 9, 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.