Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Revert "gitweb: Add 'status_str' to parse_difftree_raw_line output"
author
Jakub Narebski
<jnareb@gmail.com>
Sat, 5 Apr 2008 20:13:24 +0000
(21:13 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 5 Apr 2008 23:30:49 +0000
(16:30 -0700)
This reverts commit
6aa6f92fda47cc4ee5f599895e8a5a327fb6f9ab
.
It caused is_deleted() subroutine to output warnings when dealing with
old, legacy gitweb blobdiff URLs without either 'hb' or 'hpb'
parameters.
This fixes http://bugs.debian.org/469083
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
77ad7a4
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index ec73cb1256ba99a990648c548348ecdc3340a592..73d098a433f4238c43603ab03c838c1356e7ab7a 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-2164,7
+2164,7
@@
sub parse_difftree_raw_line {
$res{'to_mode'} = $2;
$res{'from_id'} = $3;
$res{'to_id'} = $4;
$res{'to_mode'} = $2;
$res{'from_id'} = $3;
$res{'to_id'} = $4;
- $res{'status'} = $
res{'status_str'} = $
5;
+ $res{'status'} = $5;
$res{'similarity'} = $6;
if ($res{'status'} eq 'R' || $res{'status'} eq 'C') { # renamed or copied
($res{'from_file'}, $res{'to_file'}) = map { unquote($_) } split("\t", $7);
$res{'similarity'} = $6;
if ($res{'status'} eq 'R' || $res{'status'} eq 'C') { # renamed or copied
($res{'from_file'}, $res{'to_file'}) = map { unquote($_) } split("\t", $7);
@@
-2180,7
+2180,6
@@
sub parse_difftree_raw_line {
$res{'to_mode'} = pop @{$res{'from_mode'}};
$res{'from_id'} = [ split(' ', $3) ];
$res{'to_id'} = pop @{$res{'from_id'}};
$res{'to_mode'} = pop @{$res{'from_mode'}};
$res{'from_id'} = [ split(' ', $3) ];
$res{'to_id'} = pop @{$res{'from_id'}};
- $res{'status_str'} = $4;
$res{'status'} = [ split('', $4) ];
$res{'to_file'} = unquote($5);
}
$res{'status'} = [ split('', $4) ];
$res{'to_file'} = unquote($5);
}
@@
-3002,7
+3001,7
@@
sub fill_from_file_info {
sub is_deleted {
my $diffinfo = shift;
sub is_deleted {
my $diffinfo = shift;
- return $diffinfo->{'
status_str'} =~ /D/
;
+ return $diffinfo->{'
to_id'} eq ('0' x 40)
;
}
# does patch correspond to [previous] difftree raw line
}
# does patch correspond to [previous] difftree raw line