From: Damien Diederen Date: Thu, 27 Mar 2008 22:17:42 +0000 (+0100) Subject: cvsserver: Only print the file part of the filename in status header X-Git-Tag: v1.5.5-rc3~6^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=23b7180fdcd46556038241cd0388eca092fc55e1;p=git.git cvsserver: Only print the file part of the filename in status header The "File:" header of CVS status output only includes the basename of the file, even when generating a recursive listing; do the same. Signed-off-by: Damien Diederen Signed-off-by: Junio C Hamano --- diff --git a/git-cvsserver.perl b/git-cvsserver.perl index 2fe0a8a3c..444ec0db7 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -1471,8 +1471,10 @@ sub req_status $status ||= "Unknown"; + my ($filepart) = filenamesplit($filename); + print "M ===================================================================\n"; - print "M File: $filename\tStatus: $status\n"; + print "M File: $filepart\tStatus: $status\n"; if ( defined($state->{entries}{$filename}{revision}) ) { print "M Working revision:\t" . $state->{entries}{$filename}{revision} . "\n";