On Tuesday 03 March 2009, Jan Janak wrote:
Patch series like Jan sent, can be very easily applied with git am. So instead of applying them by hand you could save them into a separate mailbox (e.g. jan_patches_1) and then run git am on that mailbox, e.g.: git am -s ~/jan_patches_1 This would apply all the patches saved in the mailbox and will use the mail body as commit message.
-s is optional, it adds a Signed-off-by: commiter name to the commit message.
Also patches like Jan sent are created using git format-patch. You basically give it a commit range and it would generate mail-ready patches.
Yes, also I keep those commits in a local repository which I intend to publish somehow somewhere soon. Then you could merge changes from the repository easily. The main reason why I was sending the patches was to get some review by people who know the code better than myself.
Hi Jan, hi Andrei,
i supposed that there is something like this. But i still need to learn a lot about git before i feel really comfortable in using it, so i choose the "manual" way. Next time i'll try the git-am command.
Thanks,
Henning