Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'kb/send-email-fifo'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 1 Jul 2008 23:22:29 +0000
(16:22 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 1 Jul 2008 23:22:29 +0000
(16:22 -0700)
* kb/send-email-fifo:
git-send-email: Accept fifos as well as files
git-send-email.perl
patch
|
blob
|
history
raw
(from parent 1:
74c3664
)
diff --git
a/git-send-email.perl
b/git-send-email.perl
index edb12c2aaaa64a13d0c59f8432d2ddd7d1cf75bd..a047b016e34c995152a05318dd322f49cb23f57e 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-408,7
+408,7
@@
sub read_config {
push @files, grep { -f $_ } map { +$f . "/" . $_ }
sort readdir(DH);
- } elsif (-f $f) {
+ } elsif (-f $f
or -p $f
) {
push @files, $f;
} else {
@@
-418,8
+418,10
@@
sub read_config {
if (!$no_validate) {
foreach my $f (@files) {
- my $error = validate_patch($f);
- $error and die "fatal: $f: $error\nwarning: no patches were sent\n";
+ unless (-p $f) {
+ my $error = validate_patch($f);
+ $error and die "fatal: $f: $error\nwarning: no patches were sent\n";
+ }
}
}