+2009-12-09: Christian Ruppert <idl0r@gentoo.org>
+ * src/echangelog/echangelog: Fix bug 284657, thanks to Andrew Gaffney <agaffney@gentoo.org>.
+
2009-09-09: Christian Ruppert <idl0r@gentoo.org>
* src/imlate/imlate: Bump to 0.0.4.
Add SLOT support.
}
sub git_unknown_objects {
- my $object = $_;
-
- return if -d $object;
- return if $File::Find::dir =~ m/^\.\/\.git\/?/;
-
- open(C, '-|', "${vcs} status ${object} 2>&1 1>/dev/null");
- push(@unknown, $object) if defined(<C>);
- close(C);
+ open(GIT, "-|", "${vcs} ls-files --exclude-standard --others");
+ while(defined( my $line = <GIT> )) {
+ chomp($line);
+
+ # IMHO we can skip those files, even if they're untracked
+ #next if $line =~ m/^\.gitignore$/;
+
+ push(@unknown, $line);
+ }
+ close(GIT);
}
# git only shows files already added so we need to check for unknown files
# separately here.
if($vcs eq "git") {
- find(\&git_unknown_objects, "./");
+ git_unknown_objects();
}
# Separate out the trivial files for now