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

2 messages from 2006-10-11 to 2006-10-11. Participants: Luben Tuikov, Junio C Hamano.
Thread: https://gitlist.dev/t/5883

## Luben Tuikov, 2006-10-11 07:30

Subject: [PATCH] gitweb: blame porcelain: lineno and orig lineno swapped
Message-ID: <20061011073005.1178.qmail@web31813.mail.mud.yahoo.com>
URL: https://gitlist.dev/e/20061011073005.1178.qmail%40web31813.mail.mud.yahoo.com

```
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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, 2006-10-11 08:37

Subject: Re: [PATCH] gitweb: blame porcelain: lineno and orig lineno swapped
Message-ID: <7virirtfhg.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7virirtfhg.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20061011073005.1178.qmail@web31813.mail.mud.yahoo.com>

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

Thanks for catching this.
 

```
