Skip to content

Commit

Permalink
cvsserver: Only print the file part of the filename in status header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Damien Diederen authored and Junio C Hamano committed Mar 27, 2008
1 parent 38bcd31 commit 23b7180
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 23b7180

Please sign in to comment.