The patch I forgot last time.
From c458a14e0f6f31141c489b3f3f8f197214110349 Mon Sep 17 00:00:00 2001
From: Ken Williams <kenahoo@gmail.com>
Date: Mon, 27 Dec 2010 10:45:54 -0600
Subject: [PATCH] Exclude files ending in tilde
---
lib/Dist/Zilla/Plugin/PruneCruft.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/Dist/Zilla/Plugin/PruneCruft.pm b/lib/Dist/Zilla/Plugin/PruneCruft.pm
index 9a774c3..7d1542e 100644
--- a/lib/Dist/Zilla/Plugin/PruneCruft.pm
+++ b/lib/Dist/Zilla/Plugin/PruneCruft.pm
@@ -50,6 +50,7 @@ sub exclude_file {
return 0 if $self->_dont_exclude_file($file);
return 1 if index($file->name, $self->zilla->name . '-') == 0;
return 1 if $file->name =~ /\A\./;
+ return 1 if $file->name =~ /~\z/;
return 1 if $file->name =~ /\A(?:Build|Makefile)\z/;
return 1 if $file->name =~ /\Ablib/;
return 1 if $file->name =~ /\.(?:o|bs)$/;
--
1.7.1