1package Minilla::Release::CheckUntrackedFiles;
2use strict;
3use warnings;
4use utf8;
5
6use Minilla::Logger;
7
8sub run {
9    my ($self, $project, $opts) = @_;
10
11    if ( my $unk = `git ls-files -z --others --exclude-standard` ) {
12        $unk =~ s/\0/\n/g;
13        errorf("Unknown local files:\n$unk\n\nUpdate .gitignore, or git add them\n");
14    }
15}
16
171;
18
19