Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dist-Zilla CPAN distribution.

Report information
The Basics
Id: 64271
Status: rejected
Priority: 0/
Queue: Dist-Zilla

People
Owner: Nobody in particular
Requestors: kwilliams [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: PruneCruft exclude files ending in tilde
It would be nice for us emacs users if PruneCruft would exclude files ending in tilde (~) . Patch is attached. If that's not agreeable, then it would be nice if we could add additional patterns to exclude files. Thanks. -Ken
The patch I forgot last time.
Subject: 0001-Exclude-files-ending-in-tilde.patch
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
On Mon Dec 27 17:10:26 2010, KWILLIAMS wrote: Show quoted text
> The patch I forgot last time.
Unless this was resolved already, you might consider sending a pull request on Github.
Why did it take me so long to respond to this? I don't know, and I apologize. backup~ files used to be pruned, but this led to complaints, so that behavior was removed, and I would rather not re-add it. The PruneFiles plugin has a "match" parameter, and you can say: [PruneFiles] match = ~$ -- rjbs