diff --git a/.gitignore b/.gitignore index ce74a94..65ad0e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.test_info.* +lastlog.jsonl *.bak lab .envrc diff --git a/xt/worktree-clean.t b/xt/worktree-clean.t new file mode 100644 index 0000000..48c467d --- /dev/null +++ b/xt/worktree-clean.t @@ -0,0 +1,12 @@ +use Test2::V0; + +use Git::Wrapper; + +my $git = Git::Wrapper->new('.'); + +my $status = $git->status; + +# note: 'yath' might create .test_info and lastlog.jsonl files +ok !$status->is_dirty => "worktree is clean"; + +done_testing;