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

Re: [PATCH] gitweb: tree view: eliminate redundant "blob"

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 1, 2006, 19:27 UTC
Message-ID
<200610012127.37113.jnareb@gmail.com>
In-Reply-To
<7vd59b27c4.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 7 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
> > ... That means that we cannot distinguish really well (at 
> > least color) between tree and blob entries.
> 
> Do we even say links are blue and underlined by forcing that in
> our css?

That is default style of link element, as specified by default CSS for HTML/XHTML.

> Doesn't leading drwxr-xr-x mean anything?
Neither d in drwxr-xr-x, nor trailing / in the name are significant
enough indicators of directory vs file (tree vs blob) indicator,
especially that by default git-ls-tree output mixes trees with blobs.
 
> Why is making the distinction important in the first place?

If you browse tree, you usually click on tree links, but not on blob links.

Show 13 quoted lines
> > In the case of shortlog/log/history/heads/tags view, to clearly mark 
> > subject/title of a commit or tag as link, we would have to use default 
> > link decoration....
> > But underlined text is harder to read, and blue underlined text even 
> > more so...
> 
> This is something in which I can see some more sense than tree
> vs blob issue, but only as a principle issue.  In practice, the
> list of commit subjects is the first thing users encounter, and
> as long as there is some visual indication (e.g. mousing over it
> makes it obvious it is something that is clickable), I think
> users will quickly pick up that it will lead to the commit's
> detail.

Well, that is certainly the question of style (redundancy vs. uncluttered output plus some coding issues).

By the way, I've planned to move printing those kind of links to separate subroutine (output based on type of object the links are related to, and somewhat als on the action/view we are in)...

-- 
Jakub Narebski
Poland
Previous: Junio C HamanoNext: Andreas Ericsson
Message 19 of 33 in “gitweb: tree view: eliminate redundant "blob"”
  1. gitweb: tree view: eliminate redundant "blob"Luben Tuikov, Sep 26, 2006
  2. Junio C HamanoSep 26, 2006
  3. Luben TuikovSep 26, 2006
  4. Jakub NarebskiSep 26, 2006
  5. Jakub NarebskiSep 26, 2006
  6. Petr BaudisSep 26, 2006
  7. Jakub NarebskiSep 26, 2006
  8. Luben TuikovSep 26, 2006
  9. Junio C HamanoSep 27, 2006
  10. Jakub NarebskiOct 1, 2006
  11. Luben TuikovSep 26, 2006
  12. Jakub NarebskiSep 26, 2006
  13. Luben TuikovSep 26, 2006
  14. Jakub NarebskiSep 26, 2006
  15. Jakub NarebskiSep 26, 2006
  16. Junio C HamanoSep 27, 2006
  17. Jakub NarebskiOct 1, 2006
  18. Junio C HamanoOct 1, 2006
  19. Jakub NarebskiOct 1, 2006
  20. Andreas EricssonOct 2, 2006
  21. Jakub NarebskiOct 2, 2006
  22. Junio C HamanoOct 2, 2006
  23. Jakub NarebskiOct 2, 2006
  24. Luben TuikovOct 2, 2006
  25. Luben TuikovOct 2, 2006
  26. Jakub NarebskiOct 2, 2006
  27. Junio C HamanoOct 3, 2006
  28. Jakub NarebskiOct 3, 2006
  29. Junio C HamanoOct 3, 2006
  30. Jakub NarebskiOct 3, 2006
  31. Luben TuikovOct 5, 2006
  32. Luben TuikovOct 3, 2006
  33. Linus TorvaldsOct 3, 2006

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.