gitweb: Extend parse_difftree_raw_line to save commit info
[gitweb.git] / gitweb / gitweb.perl
index 7f6bdaa951114e6fd1e07b9768a43f4eab229c61..0984e856235bcfe5e93c74504b605169d1b65daf 100755 (executable)
@@ -1027,9 +1027,9 @@ sub parse_difftree_raw_line {
                }
        }
        # 'c512b523472485aef4fff9e57b229d9d243c967f'
-       #elsif ($line =~ m/^([0-9a-fA-F]{40})$/) {
-       #       $res{'commit'} = $1;
-       #}
+       elsif ($line =~ m/^([0-9a-fA-F]{40})$/) {
+               $res{'commit'} = $1;
+       }
 
        return wantarray ? %res : \%res;
 }