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

Re: [PATCH 2/2] gitweb: Show trailing slash when listing tree entry in tree listing

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Oct 10, 2006, 20:52 UTC
Message-ID
<20061010205238.33892.qmail@web31803.mail.mud.yahoo.com>
In-Reply-To
<7vvemsymdx.fsf@assigned-by-dhcp.cox.net>
--- Junio C Hamano <junkio@cox.net> wrote:
Show 16 quoted lines
> Luben Tuikov <ltuikov@yahoo.com> writes:
> 
> > Or,
> >    "Click on the 'blob' link to get the ... Click on the 'tree' link to
> >     get the ... Oh you didn't know what a 'tree' or 'blob' object is?
> >     A 'blob' is ... A 'tree' is ..."
> >
> > At which point the engineer has lost 90% of his interest.
> >
> > It even gets even worse for the obnoxious "tree" link next to each commit
> > in shortlog view:
> >    "The tree link is the the tree object which is part of a commit object.
> >     Oh you don't know the internals of a commit object?  A commit object
> >     binds a tree object and a (parent) commit object, but blah, blah, blah..."
> 
> Isn't that a simple "labelling" question?  I do not think

Not quite. You have to explain to the engineer that the "tree" link next to each "comit title" "shows" the project _at the state of that commit_. Which is the WORST PR for git and gitweb. Why?

Because now you have to explain internals of git and gitweb.

Instead of letting the engineer click on the commit to see the commit and then the commit provides a _context_ where "tree" makes much more intuitive sense.

OTOH, if one is an expert in git, then they have no problem getting to the information: commit->tree.

> anybody minds to show clickable string "contents" (instead of
> "blob" or "tree") at the places you mention above and if we did

Well, "contents" of a commit is a tricky thing. This is why I don't like the "tree" link next to each commit in shortlog, but didn't mention anything when the patch was posted a couple of days ago.

It is just an unnecessary "fast forward interpretation" of commit.
> so everybody would be happy, right?
I don't know anymore.
    Luben
P.S. Notice how there is a "snapshot" link on each line of
shortlog, but there is no "snapshot" link in the nav bar
of a=commit.  The "snapshot" link is next to "tree" down
in the commit data.  There is also a "tree" link which is also
in the navbar, but "shortlog" is missing.
Previous: Luben TuikovNext: Jakub Narebski
Message 38 of 54 in “gitweb: Do not print "log" and "shortlog" redundantly in commit view”
  1. gitweb: Do not print "log" and "shortlog" redundantly in commit viewLuben Tuikov, Oct 5, 2006
  2. Jakub NarebskiOct 6, 2006
  3. Petr BaudisOct 6, 2006
  4. Luben TuikovOct 6, 2006
  5. Petr BaudisOct 7, 2006
  6. Jakub NarebskiOct 7, 2006
  7. Petr BaudisOct 7, 2006
  8. 1/2 gitweb: Show snapshot links for tree entries in tree listingPetr Baudis, Oct 7, 2006
  9. Luben TuikovOct 7, 2006
  10. Petr BaudisOct 7, 2006
  11. Luben TuikovOct 7, 2006
  12. Petr BaudisOct 7, 2006
  13. Junio C HamanoOct 7, 2006
  14. Luben TuikovOct 8, 2006
  15. 2/2 gitweb: Show trailing slash when listing tree entry in tree listingPetr Baudis, Oct 7, 2006
  16. Luben TuikovOct 7, 2006
  17. Jakub NarebskiOct 7, 2006
  18. Petr BaudisOct 7, 2006
  19. Jakub NarebskiOct 7, 2006
  20. Petr BaudisOct 7, 2006
  21. Jakub NarebskiOct 7, 2006
  22. Petr BaudisOct 9, 2006
  23. Junio C HamanoOct 9, 2006
  24. Junio C HamanoOct 10, 2006
  25. Luben TuikovOct 10, 2006
  26. Junio C HamanoOct 10, 2006
  27. Luben TuikovOct 10, 2006
  28. Jeff KingOct 10, 2006
  29. Luben TuikovOct 10, 2006
  30. Jeff KingOct 10, 2006
  31. Jakub NarebskiOct 10, 2006
  32. Luben TuikovOct 10, 2006
  33. Junio C HamanoOct 10, 2006
  34. Jakub NarebskiOct 10, 2006
  35. Luben TuikovOct 10, 2006
  36. Jakub NarebskiOct 10, 2006
  37. Luben TuikovOct 10, 2006
  38. Luben TuikovOct 10, 2006
  39. Jakub NarebskiOct 10, 2006
  40. Luben TuikovOct 10, 2006
  41. Jakub NarebskiOct 10, 2006
  42. Jakub NarebskiOct 10, 2006
  43. Andreas EricssonOct 11, 2006
  44. Luben TuikovOct 10, 2006
  45. Jeff KingOct 10, 2006
  46. Andreas EricssonOct 10, 2006
  47. Josef WeidendorferOct 10, 2006
  48. Luben TuikovOct 10, 2006
  49. Josef WeidendorferOct 10, 2006
  50. Luben TuikovOct 10, 2006
  51. Junio C HamanoOct 10, 2006
  52. A Large Angry SCMOct 7, 2006
  53. Junio C HamanoOct 7, 2006
  54. Luben TuikovOct 8, 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.