Skip to content

Commit

Permalink
gitweb: Extend parse_difftree_raw_line to save commit info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Narebski authored and Junio C Hamano committed Aug 31, 2006
1 parent fa70200 commit 0edcb37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0edcb37

Please sign in to comment.