Development using git:Creating patches: Difference between revisions
(use alpine-aports mailing list) |
(add mailto link for alpine-aports) |
||
Line 1: | Line 1: | ||
Patches should be created with git and submitted to alpine- | Patches should be created with git and submitted to [mailto:alpine-aports@lists.alpinelinux.org alpine-aports] mailing list with ''git send-email''. | ||
== Only the last commit with 'git send-email' == | == Only the last commit with 'git send-email' == | ||
To submit the last commit as a patch to alpine- | To submit the last commit as a patch to alpine-devel mailing list: | ||
{{Cmd|git send-email --to alpine- | {{Cmd|git send-email --to alpine-devel@lists.alpinelinux.org HEAD^}} | ||
The first line in commit message will be ''subject'' and the long description (separated with empty line) will be the body in the email. The example below shows | The first line in commit message will be ''subject'' and the long description (separated with empty line) will be the body in the email. The example below shows | ||
Line 27: | Line 27: | ||
mkdir patches | mkdir patches | ||
git format-patch -o patches origin | git format-patch -o patches origin | ||
git send-email --compose --no-chain-reply-to --to alpine- | git send-email --compose --no-chain-reply-to --to alpine-devel@lists.alpinelinux.org</nowiki>}} | ||
This will produce the patches for each local commit in the directory "patches" and send them. | This will produce the patches for each local commit in the directory "patches" and send them. |
Revision as of 09:59, 19 December 2014
Patches should be created with git and submitted to alpine-aports mailing list with git send-email.
Only the last commit with 'git send-email'
To submit the last commit as a patch to alpine-devel mailing list:
git send-email --to alpine-devel@lists.alpinelinux.org HEAD^
The first line in commit message will be subject and the long description (separated with empty line) will be the body in the email. The example below shows
Initial APKBUILD file of packagename <- Subject line Enter some details about your package <- Mail body here if you like.
Read Development using git to send patch with SMTP Auth.
Multiple commits with 'git send-email'
If you have many commits you can create a directory with patches and send them with git send-email.
rm -Rf patches mkdir patches git format-patch -o patches origin git send-email --compose --no-chain-reply-to --to alpine-devel@lists.alpinelinux.org
This will produce the patches for each local commit in the directory "patches" and send them. Use --no-chain-reply-to make sure it doesn't reply.
Don't do:
- [PATCH 0/m]
- [PATCH 1/m]
- [PATCH 2/m]
- ...
- [PATCH 2/m]
- [PATCH 1/m]
But do:
- [PATCH 0/m]
- [PATCH 1/m]
- [PATCH 2/m]
- ..