*WIFSIGNALED = sub { shift() & 127 } unless eval { WIFSIGNALED(0); 1 };
}
-use Object::Tiny qw/fake repo bare name work/;
-
use App::Rgit::Utils qw/validate/;
=head1 NAME
$work = $repo;
}
}
- $class->SUPER::new(
+ bless {
fake => !!$args{fake},
repo => $repo,
bare => $bare,
name => $name,
work => $work,
- );
+ }, $class;
}
=head2 C<chdir>
=head2 C<work>
-Accessors.
+Read-only accessors.
+
+=cut
+
+BEGIN {
+ eval "sub $_ { \$_[0]->{$_} }" for qw/fake repo bare name work/;
+}
=head1 SEE ALSO