Hi,Attached patch attempts to report the correct lines changed when using the cvs log command with cvsserver. Is there any performance impact using "git-log -1 --shortstat <object>" instead of "git-cat-file commit <object>"?
(Also, it would be nice if git-log --pretty=format:XXX could display diff information such as shortstat, to make parsing more robust.)
Previously, cvs log reported "+2 -3" for all commits. This patch reports real values except when the commit is fetched from the SQLite DB, which remains "+2 -3" at all times.
(My mailer destroys inline patches, so I'm attaching it. Sorry about that.)
Signed-off-by: Fredrik Noring <noring@xxxxxxxxxx> --- git-cvsserver.perl | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 deletions(-)
Attachment:
0001-Calculate-lines-changed-for-cvs-log-command.patch
Description: Binary data