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

[PATCH] gitweb: git_annotate didn't expect negative numeric timezone

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 26, 2006, 00:13 UTC
Message-ID
<200608260213.06176.jnareb@gmail.com>
In-Reply-To
<200608260147.10880.jnareb@gmail.com>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
This fixes error in git_annotate mentioned in parent post.
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 6344263..e5a0db5 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2298,7 +2298,7 @@ HTML
 		chomp $line;
 		$line_class_num = ($line_class_num + 1) % $line_class_len;
 
-		if ($line =~ m/^([0-9a-fA-F]{40})\t\(\s*([^\t]+)\t(\d+) \+\d\d\d\d\t(\d+)\)(.*)$/) {
+		if ($line =~ m/^([0-9a-fA-F]{40})\t\(\s*([^\t]+)\t(\d+) [+-]\d\d\d\d\t(\d+)\)(.*)$/) {
 			$long_rev = $1;
 			$author   = $2;
 			$time     = $3;
-- 
1.4.1.1
Previous: Jakub Narebski
Message 2 of 2 in “gitweb: Restore old git_blame using git-annotate under "annotate"”
  1. gitweb: Restore old git_blame using git-annotate under "annotate"Jakub Narebski, Aug 25, 2006
  2. gitweb: git_annotate didn't expect negative numeric timezoneJakub Narebski, Aug 26, 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.