When should I use a patch?

3

One of the features of git is the use of patches. In what situations should a patch be used?

I read that patches were intended for hotfixes. However, I can not understand why I would patch instead of simply pushing with the fix or a pull request.

Would it be the case that whoever corrected the bug was allowed to clone the repository, but not allowed to push or pull requests?

    
asked by anonymous 22.08.2016 / 04:24

1 answer

0

Patches are used when sending a commit of Git via email, so much so that Git has senders to send.

This has to do with the Linux kernel developers' practice of swapping patches and discussing them via email and mailing lists. Some projects imitate this modus operandi. Personally, I prefer a Gerrit-type review tool.

    
04.04.2018 / 07:39