mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added some new advice on applying patches
This commit is contained in:
@@ -351,6 +351,20 @@ $ git format-patch master --stdout > my_new_patch.diff
|
||||
|
||||
Sanity check the results of this operation: open the diff file in your text editor of choice and make sure that no unintended changes crept in.
|
||||
|
||||
You can check your patches by applying your patch to an different dedicated branch:
|
||||
|
||||
<shell>
|
||||
$ git checkout -b testing_branch
|
||||
$ git apply --check my_new_patch.diff
|
||||
</shell>
|
||||
|
||||
You can make sure your patches don't add any whitespace by applying it yourself using the --whitespace=error-all option. Make sure you are on your dedicated test branche and:
|
||||
|
||||
<shell>
|
||||
$ git apply --whitespace=error-all mynew_patch.diff
|
||||
</shell>
|
||||
|
||||
|
||||
h4. Create a Lighthouse Ticket
|
||||
|
||||
Now create a ticket with your patch. Go to the "new ticket":http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/new page at Lighthouse. Fill in a reasonable title and description, remember to attach your patch file, and tag the ticket with the ‘patch’ tag and whatever other subject area tags make sense.
|
||||
|
||||
Reference in New Issue
Block a user