Merging patches (moved): Difference between revisions
Content added Content deleted
(Created page with ''''Objective''': Someone gives you a patch to OpenHatch. What now? == Step 0: Fetch the patch file and get the latest code from "origin" == wget http://openhatch.org/bugs/file…') |
No edit summary |
||
Line 24: | Line 24: | ||
That's all you need to do, in order to apply a patch. You might want to now ''test'' the patch, or provide feedback to the submitter. |
That's all you need to do, in order to apply a patch. You might want to now ''test'' the patch, or provide feedback to the submitter. |
||
[[Category:Hacking OpenHatch]] |
Revision as of 05:37, 18 October 2010
Objective: Someone gives you a patch to OpenHatch. What now?
Step 0: Fetch the patch file and get the latest code from "origin"
wget http://openhatch.org/bugs/file33/whatever
git fetch
Step 1: Create a new local topic branch, based on origin/master
git checkout origin/master -b new_topic_branch
Step 2: Apply said file
git am < file_created_by_wget.patch
Step 3: Make sure it worked
If it did work, you will have some commits on top of origin/master:
git log --decorate
Conclusion
That's all you need to do, in order to apply a patch. You might want to now test the patch, or provide feedback to the submitter.