... | ... | @@ -58,7 +58,11 @@ See [Getting Ready to Share: Anatomy of a Patch Series](https://git-scm.com/docs |
|
|
|
|
|
## Extract patches from mailing list
|
|
|
|
|
|
Sometimes, you would want to extract from the mailing list and apply them to your branch. The [b4](https://github.com/mricon/b4) binary is a tool that can extract patches from the mailing list
|
|
|
Sometimes, you would want to extract from the mailing list and apply them to your branch.
|
|
|
|
|
|
### Using b4
|
|
|
|
|
|
The [b4](https://github.com/mricon/b4) binary is a tool that can extract patches from the mailing list
|
|
|
|
|
|
1. Install b4
|
|
|
|
... | ... | @@ -80,8 +84,25 @@ Sometimes, you would want to extract from the mailing list and apply them to you |
|
|
b4 shazam <message ID>
|
|
|
```
|
|
|
|
|
|
### Using Patchwork
|
|
|
|
|
|
Besides that, [Patchwork](https://patchwork.kernel.org/project/git/list/) is a place to store patches, you can manually download patches from it.
|
|
|
|
|
|
### Manually from the archive
|
|
|
|
|
|
On the https://lore.kernel.org/git and http://public-inbox.org/git/ mailing list archives a `(raw)` link is displayed at the end of the "Message-ID: ..." line towards the top of the page for a message.
|
|
|
|
|
|
For example on: https://lore.kernel.org/git/ddd8a9a90cea10be47eba4775bb90f01a9b80443.1718899877.git.gitgitgadget@gmail.com/ we can find:
|
|
|
|
|
|
Message-ID: <ddd8a9a90cea10be47eba4775bb90f01a9b80443.1718899877.git.gitgitgadget@gmail.com> ([raw](https://lore.kernel.org/git/ddd8a9a90cea10be47eba4775bb90f01a9b80443.1718899877.git.gitgitgadget@gmail.com/raw))
|
|
|
|
|
|
Copying that 'raw' link allows you to download the patch with wget (or curl), for example, and then `git am` allows you to create a new commit on the current branch from the patch:
|
|
|
|
|
|
```
|
|
|
$ wget -q https://lore.kernel.org/git/ddd8a9a90cea10be47eba4775bb90f01a9b80443.1718899877.git.gitgitgadget@gmail.com/raw
|
|
|
$ git am raw
|
|
|
```
|
|
|
|
|
|
# Build from source and IDE setup
|
|
|
|
|
|
https://git-scm.com/docs/MyFirstContribution
|
... | ... | |