{"thread":{"id":"27884","subject":"[PATCH] git-send-email: Do not send editor backup files in a directory","startedAt":"2011-07-22T07:29:14Z","lastAt":"2011-07-29T06:47:10Z","messageCount":3,"participants":["Joe Perches","Ramkumar Ramachandra"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"171832","messageId":"865ddd502d9ba4a19c33c69039ecb70ea12c0692.1311319658.git.joe@perches.com","threadId":"27884","inReplyTo":null,"subject":"[PATCH] git-send-email: Do not send editor backup files in a directory","fromName":"Joe Perches","fromEmail":"joe@perches.com","sentAt":"2011-07-22T07:29:14Z","receivedAt":"2011-07-22T07:29:14Z","isPatch":true,"sender":{"key":"joe@perches.com","avatar":"https://avatars.githubusercontent.com/u/13122723?v=4"},"body":"Sift out backup files that are commonly created by editors.\n\nSigned-off-by: Joe Perches <joe@perches.com>\n---\n git-send-email.perl |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)\n\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex 98ab33a..a4558d9 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -521,7 +521,9 @@ while (defined(my $f = shift @ARGV)) {\n \t\topendir my $dh, $f\n \t\t\tor die \"Failed to opendir $f: $!\";\n \n-\t\tpush @files, grep { -f $_ } map { catfile($f, $_) }\n+\t\tpush @files, grep { !/#.+#$/ && !/~$/ &&\n+\t\t\t\t\t!/\\.bak$/ && !/\\.orig$/ &&\n+\t\t\t\t\t-f $_ } map { catfile($f, $_) }\n \t\t\t\tsort readdir $dh;\n \t\tclosedir $dh;\n \t} elsif ((-f $f or -p $f) and !check_file_rev_conflict($f)) {\n-- \n1.7.6.131.g99019\n"},{"id":"172313","messageId":"loom.20110729T023925-64@post.gmane.org","threadId":"27884","inReplyTo":"865ddd502d9ba4a19c33c69039ecb70ea12c0692.1311319658.git.joe@perches.com","subject":"Re: [PATCH] git-send-email: Do not send editor backup files in a directory","fromName":"Joe Perches","fromEmail":"joe@perches.com","sentAt":"2011-07-29T00:41:56Z","receivedAt":"2011-07-29T00:41:56Z","isPatch":true,"sender":{"key":"joe@perches.com","avatar":"https://avatars.githubusercontent.com/u/13122723?v=4"},"body":"Joe Perches <joe <at> perches.com> writes:\n> Sift out backup files that are commonly created by editors.\n\nPing?\n\n-------------- \ndiff --git a/git-send-email.perl b/git-send-email.perl\n[]\n@@ -521,7 +521,9 @@ while (defined(my $f = shift @ARGV)) {\n[]\n-\t\tpush @files, grep { -f $_ } map { catfile($f, $_) }\n+\t\tpush @files, grep { !/#.+#$/ && !/~$/ &&\n+\t\t\t\t\t!/\\.bak$/ && !/\\.orig$/ &&\n+\t\t\t\t\t-f $_ } map { catfile($f, $_) }\n"},{"id":"172320","messageId":"CALkWK0nowSnmN7gj6+_VDX81njev-q6WUgpaFouRHMzJCva9Rw@mail.gmail.com","threadId":"27884","inReplyTo":"865ddd502d9ba4a19c33c69039ecb70ea12c0692.1311319658.git.joe@perches.com","subject":"Re: [PATCH] git-send-email: Do not send editor backup files in a directory","fromName":"Ramkumar Ramachandra","fromEmail":"artagnon@gmail.com","sentAt":"2011-07-29T06:47:10Z","receivedAt":"2011-07-29T06:47:10Z","isPatch":true,"sender":{"key":"r@artagnon.com","avatar":"https://avatars.githubusercontent.com/u/37226?v=4"},"body":"Hi Joe,\n\nJoe Perches writes\n> [Subject: git-send-email: Do not send editor backup files in a directory]\n\nI like this change.  I don't have to resort to my normal `git\nsend-email outgoing/*.patch` anymore.\n\nThanks.\n\n-- Ram\n"}]}