* Issue: Mails sent twice if patch is mentioned twice while sending mail.
@ 2011-08-17 6:11 viresh kumar
2011-08-17 8:52 ` Ramkumar Ramachandra
0 siblings, 1 reply; 4+ messages in thread
From: viresh kumar @ 2011-08-17 6:11 UTC (permalink / raw)
To: git@vger.kernel.org; +Cc: Shiraz HASHIM, Vipin KUMAR
Hello,
I found something which look wrong to me, but may not be wrong.
Suppose if we do:
git send-email --to=abc@xyz.com 0001-xyz.patch 0001-xyz.patch
What should be the desired behavior of this command, Should we get
mail only once or twice?
Currently we are getting it twice.
--
viresh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue: Mails sent twice if patch is mentioned twice while sending mail.
2011-08-17 6:11 Issue: Mails sent twice if patch is mentioned twice while sending mail viresh kumar
@ 2011-08-17 8:52 ` Ramkumar Ramachandra
2011-08-17 9:16 ` vireshk
0 siblings, 1 reply; 4+ messages in thread
From: Ramkumar Ramachandra @ 2011-08-17 8:52 UTC (permalink / raw)
To: viresh kumar; +Cc: git@vger.kernel.org, Shiraz HASHIM, Vipin KUMAR
Hi Viresh,
Viresh kumar writes:
> git send-email --to=abc@xyz.com 0001-xyz.patch 0001-xyz.patch
>
> What should be the desired behavior of this command, Should we get
> mail only once or twice?
I'd expect it to send out two emails. Why should 'git send-email'
check the supplied command-line arguments for duplicates? I can't
think of a usecase for it. It's a simple Perl script that mails out
the mbox files specified on the command-line. Could you tell us your
usecase? If it's a shell script that calls 'git send-email' with
duplicate arguments, I think you should fix the shell script, not 'git
send-email'.
Thanks.
-- Ram
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue: Mails sent twice if patch is mentioned twice while sending mail.
2011-08-17 8:52 ` Ramkumar Ramachandra
@ 2011-08-17 9:16 ` vireshk
2011-08-17 9:58 ` Matthieu Moy
0 siblings, 1 reply; 4+ messages in thread
From: vireshk @ 2011-08-17 9:16 UTC (permalink / raw)
To: Ramkumar Ramachandra; +Cc: git@vger.kernel.org, Shiraz HASHIM, Vipin KUMAR
On 8/17/2011 2:22 PM, Ramkumar Ramachandra wrote:
> Viresh kumar writes:
>> git send-email --to=abc@xyz.com 0001-xyz.patch 0001-xyz.patch
>>
>> What should be the desired behavior of this command, Should we get
>> mail only once or twice?
>
> I'd expect it to send out two emails. Why should 'git send-email'
> check the supplied command-line arguments for duplicates? I can't
> think of a usecase for it. It's a simple Perl script that mails out
> the mbox files specified on the command-line. Could you tell us your
> usecase? If it's a shell script that calls 'git send-email' with
> duplicate arguments, I think you should fix the shell script, not 'git
> send-email'.
>
Hi Ram,
Actually i did this by mistake once and thought git send-email should
have taken care of this. I may be wrong, but it was just an thought.
--
viresh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue: Mails sent twice if patch is mentioned twice while sending mail.
2011-08-17 9:16 ` vireshk
@ 2011-08-17 9:58 ` Matthieu Moy
0 siblings, 0 replies; 4+ messages in thread
From: Matthieu Moy @ 2011-08-17 9:58 UTC (permalink / raw)
To: vireshk
Cc: Ramkumar Ramachandra, git@vger.kernel.org, Shiraz HASHIM,
Vipin KUMAR
vireshk <viresh.kumar@st.com> writes:
> Hi Ram,
>
> Actually i did this by mistake once and thought git send-email should
> have taken care of this. I may be wrong, but it was just an thought.
git send-email could probably issue a warning if the same patch is
mentionned twice, but I don't think it's sane to try to silently
autocorrect user's mistake.
If users get used to "git send-email 1.patch 1.patch" sending the email
only once, then what should be the expected behavior of
git send-email 1.patch ./1.patch
git send-email 1.patch symlink-to-1.patch
?
The nice thing with a warning is that you can't really blame the tool
for not issuing a warning, while it can be harmfull to have an
autocorrection fail in a real user-senario.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-17 10:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17 6:11 Issue: Mails sent twice if patch is mentioned twice while sending mail viresh kumar
2011-08-17 8:52 ` Ramkumar Ramachandra
2011-08-17 9:16 ` vireshk
2011-08-17 9:58 ` Matthieu Moy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.