@matheusbsbs / matheus-bagliano / commits / 23b7180fdc
Fork 0

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 <dash@foobox.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Damien Diederen committed Mar 27, 2008 at 23:17 UTC 23b7180fdcd46556038241cd0388eca092fc55e1
1 file changed +3 -1
git-cvsserver.perl
+3 -1
@@ -1471,8 +1471,10 @@ sub req_status
1471
1472 $status ||= "Unknown";
1473
1474 + my ($filepart) = filenamesplit($filename);
1475 +
1476 print "M ===================================================================\n";
1475 - print "M File: $filename\tStatus: $status\n";
1477 + print "M File: $filepart\tStatus: $status\n";
1478 if ( defined($state->{entries}{$filename}{revision}) )
1479 {
1480 print "M Working revision:\t" . $state->{entries}{$filename}{revision} . "\n";