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

[PATCH 1/4] gitweb: Add missing show '...' links change.

From
RFRobert Fitzsimons <robfitz@273k.net>
Date
Dec 22, 2006, 19:38 UTC
Message-ID
<11668162952375-git-send-email-robfitz@273k.net>

Part of the patch for "gitweb: Show '...' links in "summary" view only if there are more items" (313ce8cee665447e4476d7e8985b270346a8e5a1) is missing. Add it back in.

Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
---

With all the tooing and frowing this part of the original patch got lost. I'm also resubmiting the original optimizations patches with a few changes.

Robert
 gitweb/gitweb.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index ebbc397..80c04b8 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2983,6 +2983,7 @@ sub git_summary {
 	if (@forklist) {
 		git_print_header_div('forks');
 		git_project_list_body(\@forklist, undef, 0, 15,
+		                      $#forklist <= 15 ? undef :
 		                      $cgi->a({-href => href(action=>"forks")}, "..."),
 				      'noheader');
 	}
-- 
1.4.4.3.gc902c
Next: Robert Fitzsimons
Message 1 of 8 in “gitweb: Add missing show '...' links change.”
  1. 1/4 gitweb: Add missing show '...' links change.Robert Fitzsimons, Dec 22, 2006
  2. 1/4 gitweb: Add missing show '...' links change.Robert Fitzsimons, Dec 22, 2006
  3. 2/4 gitweb: optimize git_get_last_activity.Robert Fitzsimons, Dec 22, 2006
  4. 3/4 gitweb: optimize git_shortlog_body.Robert Fitzsimons, Dec 22, 2006
  5. 4/4 gitweb: optimize git_summary.Robert Fitzsimons, Dec 22, 2006
  6. Jakub NarebskiDec 22, 2006
  7. Jakub NarebskiDec 22, 2006
  8. Junio C HamanoDec 22, 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.