@matheusbsbs / matheus-bagliano / commits / a248c9614f
Fork 0

cvsserver: use git-rev-list instead of git-log

On 5/4/06, Linus Torvalds <torvalds@osdl.org> wrote: > No it wasn't. "git log --parents" was definitely supposed to still work. > > That said, I suspect a git-cvsserver kind of usage is better off using > "git-rev-list --parents HEAD" instead, which didn't break in the first > place.

Martin Langhoff committed May 4, 2006 at 10:51 UTC a248c9614fdd130229fb5f9565abbd77bd1d0cc9
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