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

Re: [PATCH] gitk: new option to hide remote refs

From
SBSanti Béjar <santi@agolina.net>
Date
Aug 4, 2009, 09:44 UTC
Message-ID
<adf1fd3d0908040244m1c7d45ffw67be74091da74730@mail.gmail.com>
In-Reply-To
<200908041108.19108.trast@student.ethz.ch>
2009/8/4 Thomas Rast <trast@student.ethz.ch>:
Show 16 quoted lines
> Junio C Hamano wrote:
>> Thomas Rast <trast@student.ethz.ch> writes:
>>
>> > -       if {![string match "*/HEAD" $name]} {
>> > +       if {![string match "*/HEAD" $name] && !$hideremotes} {
>>
>> Hmm, I wonder if it would be more useful to extend this by using $skiprefs
>> pattern instead, like so:
> [...]
>> +     if {$skiprefs != "" && [string match $skiprefs $name]} continue
>
> Shortly after sending the patch, I had another idea: how about an
> option to only show refs that were given on the command line, if any?
> That way 'gitk --branches' or 'gitk HEAD' would hide the whole remotes
> mess (and of course also all other refs in the process).  I think I
> might be able to voodoo enough Tk to implement this.

Another possibility could be to have just an indication that the commit has branches and/or tags pointing to it. Maybe just as it is now but without the branch/tag name.

To mimic the current UI it could be:
o-<|-|_| Commit summary
with:
 o the current circle
 <| a yellow triangle
 |_| a green square

and then if you click on them you could get the current view, or a list of branches/tags in the lower panel.

my 2 cents, Santi

Previous: Thomas RastNext: Thell Fowler
Message 4 of 6 in “gitk: new option to hide remote refs”
  1. gitk: new option to hide remote refsThomas Rast, Aug 3, 2009
  2. Junio C HamanoAug 4, 2009
  3. Thomas RastAug 4, 2009
  4. Santi BéjarAug 4, 2009
  5. Thell FowlerAug 10, 2009
  6. Paul MackerrasAug 13, 2009

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.