diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-01 10:54:17 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-01 10:54:17 -0700 |
commit | 13e477b4d3e32b84b80b57e7a0a6bb2b5b6f6fea (patch) | |
tree | c61d67b1349fe8f76d3247a4dc1bb1e4f85bf523 /lib | |
parent | 067680560397147080a8eba480abd9637e6e0251 (diff) | |
download | p5-Git-Annex-13e477b4d3e32b84b80b57e7a0a6bb2b5b6f6fea.tar.gz |
tweak
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Git/Annex.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Git/Annex.pm b/lib/Git/Annex.pm index bb24b13..1cd26f4 100644 --- a/lib/Git/Annex.pm +++ b/lib/Git/Annex.pm @@ -78,7 +78,7 @@ Returns the toplevel of the repository. =cut -has "toplevel", is => 'ro'; +has toplevel => (is => 'ro'); =head2 git @@ -86,7 +86,7 @@ Returns an instance of L<Git::Wrapper> initialised in the repository. =cut -has "git" => ( +has git => ( is => 'lazy', default => sub { Git::Wrapper->new(shift->toplevel) }); @@ -96,7 +96,7 @@ Returns an instance of L<Git::Repository> initialised in the repository. =cut -has "repo" => ( +has repo => ( is => 'lazy', # we don't know (here) whether our repo is bare or not, so we # don't know whether to use the git_dir or work_tree arguments to |