<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
PS: I have no idea how to submit patches. Going to try now *without* "[PATCH]" in the title.<br><br></blockquote><div><br>Here are some steps to create a basic patch with git:<br><br>1. git clone URL (clone the repo)<br>
2. make changes (make your changes to the repo files)<br>3. git diff > yourcode.patch (not necessary, but a quick way to review your changes before committing)<br>4. git commit -a -m "Commit message." (Commit the changes to your local repo copy)<br>
NOTES:<br> a) A commit message should be no more than 78 characters.<br> b) If further explanation is required, the following format should be used:<br> "Commit message here.<br>
<blank line here><br> Further explanation. Each line should<br> be no longer than 78 characters."<br> c) Using 'git commit -a' should open your default text editor<br>
5. git format-patch origin (creates a patch file with header info)<br> NOTE: Make sure to configure git first with<br> git-config or edit ~/.gitconfig manually<br> so the header info is correct<br>
6. git send-email --to "<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a>" *.patch<br> (send the patch in an email --to "wherever@youwantto")<br> NOTE: You might want to send it to yourself first to make sure it appears as intended.<br>
7. If you need to start over again, do something like this:<br> git reset --hard origin/master<br> git checkout master<br> git clean -fdx<br> git apply /ptah/to/yourcode.patch<br> NOTE: 'git clean -fdx' will wipe any files that are not part of the repo,<br>
so don't store important files (patches, scripts, etc.) in the<br> repo directory. 'git apply PATCH' will apply a patch without<br> committing anything, so you're basically at step 3.<br>
<br><br>I am by no means a git expert but hopefully this will help getting started with submitting patches.<br></div></div>
<br><br><br>Regards,<br><br>Scott<br>