cvsserver: use git-rev-list instead of git-log
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Martin Langhoff committed
May 4, 2006 at 10:53 UTC
095acb8a2ac86c003d89886c5df7706c44912196
1 file changed
+3
-2
git-cvsserver.perl
+3
-2
@@ -2076,14 +2076,15 @@ sub update
2076
# TODO: log processing is memory bound
2077
# if we can parse into a 2nd file that is in reverse order
2078
# we can probably do something really efficient
2079
- my @git_log_params = ('--parents', '--topo-order');
2079
+ my @git_log_params = ('--pretty', '--parents', '--topo-order');
2080
2081
if (defined $lastcommit) {
2082
push @git_log_params, "$lastcommit..$self->{module}";
2083
} else {
2084
push @git_log_params, $self->{module};
2085
}
2086
- open(GITLOG, '-|', 'git-log', @git_log_params) or die "Cannot call git-log: $!";
2086
+ # git-rev-list is the backend / plumbing version of git-log
2087
+ open(GITLOG, '-|', 'git-rev-list', @git_log_params) or die "Cannot call git-rev-list: $!";
2088
2089
my @commits;
2090