From: Joe Perches Date: Fri, 29 Jul 2011 00:41:56 GMT Subject: Re: [PATCH] git-send-email: Do not send editor backup files in a directory Message-ID: In-Reply-To: <865ddd502d9ba4a19c33c69039ecb70ea12c0692.1311319658.git.joe@perches.com> Joe Perches perches.com> writes: > Sift out backup files that are commonly created by editors. Ping? -------------- diff --git a/git-send-email.perl b/git-send-email.perl [] @@ -521,7 +521,9 @@ while (defined(my $f = shift @ARGV)) { [] - push @files, grep { -f $_ } map { catfile($f, $_) } + push @files, grep { !/#.+#$/ && !/~$/ && + !/\.bak$/ && !/\.orig$/ && + -f $_ } map { catfile($f, $_) }