git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Getting gitk to display all refs but stgit logs
@ 2007-01-08 21:32 Yann Dirson
  2007-01-09 12:17 ` Marco Costalba
  0 siblings, 1 reply; 4+ messages in thread
From: Yann Dirson @ 2007-01-08 21:32 UTC (permalink / raw)
  To: GIT list

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-09 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08 21:32 Getting gitk to display all refs but stgit logs Yann Dirson
2007-01-09 12:17 ` Marco Costalba
2007-01-09 19:41   ` Yann Dirson
2007-01-09 21:31     ` Marco Costalba

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