2

What happens when two different people fixed and send the same patch at the same time?

  • 2
    Maintainer will apply one of them, if they are identical. Or merge them. This happens a lot. – Pilot6 Jun 3 '15 at 11:35
3

Suppose that both works completely and both send at the send time, still coding varies from a programmer to another.

  • The more optimized code will applied.
  • Programmer reputation also helps
  • previous works done the programmars
  • How much each code will be dynamic to later changes

you can find many criteria that affect the chose.


UPDATE:

Thanks to @ThomasW comment, if it happens that two patches are identical and other criteria the same (which is generally considered rare, I think):

If that is the case then there's no rules for which to use or not, and you can credit both contributors for the same patch.

  • This excludes the case in which the patches are identical. If that is the case then there's no rules for which to use or not, and you can credit both contributors for the same patch. – Thomas Ward Jun 3 '15 at 12:30
  • @ThomasW. but would that be possible to have all criteria the same for both? I duobt – Maythux Jun 3 '15 at 12:33
  • As the primary NGINX packager for Ubuntu (so merges, SRUs, etc. but not security uploads though I do provide debdiffs to the security team for them) a patch to fix a minor issue that was major enough to warrant an SRU from me and someone else was identical. Because I'm not really egotistical (my girlfriend would say otherwise though), I credited the patch to the other submitter. The patches were otherwise identical. So yes there can be some patches which are identical in all ways. With more complex patches it's rare but it can happen with less complex ones. – Thomas Ward Jun 3 '15 at 12:35
  • Maybe this would be possible, thanks anyway, ill update my answer – Maythux Jun 3 '15 at 12:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.