threads / patch / 5883

patchgitweb: blame porcelain: lineno and orig lineno swapped

Subject: [PATCH] gitweb: blame porcelain: lineno and orig lineno swapped

## tl;dr

2 messages between Oct 11, 2006 and Oct 11, 2006. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Luben Tuikov· Oct 11, 2006, 07:30 UTC · lore
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to gitweb/gitweb.perl +1 −1
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 77063f0..19f434d 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2594,7 +2594,7 @@ HTML
 	while (1) {
 		$_ = <$fd>;
 		last unless defined $_;
-		my ($full_rev, $lineno, $orig_lineno, $group_size) =
+		my ($full_rev, $orig_lineno, $lineno, $group_size) =
 		    /^([0-9a-f]{40}) (\d+) (\d+)(?: (\d+))?$/;
 		if (!exists $metainfo{$full_rev}) {
 			$metainfo{$full_rev} = {};
-- 
1.4.3.rc2.gacda
Junio C Hamano· Oct 11, 2006, 08:37 UTC · re: Luben Tuikov · lore

Re: [PATCH] gitweb: blame porcelain: lineno and orig lineno swapped

Sheesh. I thought I swapped both blame side and gitweb side to match your suggestion but apparently I didn't.

Thanks for catching this.
 

← back to recent threads