aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-08-31 00:36:04 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-31 12:58:31 -0700
commit0edcb37d6707c8c9b566bcbb51a2d70275bd30da (patch)
tree3d26b1cc041023a817e76f06e1fbfcc239efe14c /gitweb
parentfa702003e4f63ecdc71d16b51efc02f33fe7931f (diff)
downloadgit-0edcb37d6707c8c9b566bcbb51a2d70275bd30da.tar.gz
git-0edcb37d6707c8c9b566bcbb51a2d70275bd30da.tar.xz
gitweb: Extend parse_difftree_raw_line to save commit info
Extend parse_difftree_raw_line to save commit info from when git-diff-tree is given only one <tree-ish>, for example when fed from git-rev-list using --stdin option. git-diff-tree outputs a line with the commit ID when applicable. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 7f6bdaa95..0984e8562 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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;
}