public
Description: MooTools Core Repository
Home | Edit | New

How to Verify a Patch

  1. Find a patch
    • Look for a Ticket that has a patch that you can apply
    • Find out the url of the patch you want to apply, you’ll need it in a second…
  2. Make a New Local Branch (on your local machine)
    git checkout -b TheNameOfYourTemporaryBranch
  3. Apply the Patch to Your New Branch
    curl URL_TO_THE_PATCH_FILE |git am OR
    download URL_TO_THE_PATCH_FILE somehow to a file on your local system and then run
    git am THE_NAME_OF_YOUR_PATCH_FILE
  4. Verify the Awesomeness of the Patch
    • Whatever makes you sure that this patch is good in your personal opinion
    • Look at a diff
      git diff HEAD^
    • Look at the code
    • Run the specs
    • etc…
  5. Make Any Related Modifications
    • Add more specs
    • Fix the whitespace
    • etc…
    • Then commit those changes to the same branch
  6. Merge Into Your Master Branch
    git co master; git merge TheNameOfYourTemporaryBranch
  7. Delete Your Temporary Branch
    git branch -d TheNameOfYourTemporaryBranch
  8. Push Back up to GitHub
    git push origin master
  9. Update the Ticket With Your Approval
    • Be sure to mention that you ran the specs and they passed
    • Mention the specific browser / OS that you verified the specs with
Last edited by subtleGradient, Fri Jul 11 04:26:39 -0700 2008
Home | Edit | New
Versions: