]> Sergey Matveev's repositories - public-inbox.git/commitdiff
viewvcs: stop checking unused "B" query parameter
authorEric Wong <e@yhbt.net>
Tue, 7 Jul 2020 20:37:36 +0000 (20:37 +0000)
committerEric Wong <e@yhbt.net>
Fri, 10 Jul 2020 11:27:07 +0000 (11:27 +0000)
The resulting OID ("oid_b") is a required arg and part of
$env->{PATH_INFO}, instead; so it's never part of an optional
query parameter.

lib/PublicInbox/SolverGit.pm
lib/PublicInbox/ViewVCS.pm

index b1cb1ae97c41ccd371a8387b13f5f379abd21418..ddf5fa16b4b10ee502454982685324f19069424d 100644 (file)
@@ -594,7 +594,7 @@ sub new {
 }
 
 # recreate $oid_want using $hints
-# hints keys: path_a, path_b, oid_a
+# hints keys: path_a, path_b, oid_a (note: `oid_b' is NOT a hint)
 # Calls {user_cb} with: [ ::Git object, oid_full, type, size, di (diff_info) ]
 # with found object, or undef if nothing was found
 # Calls {user_cb} with a string error on fatal errors
index 053848a8b49f2a51ad6f283648ce56a65881c825..87927d5eaf3e7726ce123574fc95dc3a4c6e3b20 100644 (file)
@@ -27,7 +27,7 @@ my $hl = eval {
        PublicInbox::HlMod->new;
 };
 
-my %QP_MAP = ( A => 'oid_a', B => 'oid_b', a => 'path_a', b => 'path_b' );
+my %QP_MAP = ( A => 'oid_a', a => 'path_a', b => 'path_b' );
 our $MAX_SIZE = 1024 * 1024; # TODO: configurable
 my $BIN_DETECT = 8000; # same as git