openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
ChangesetController#upload
Upload a diff in a single transaction. This means that each change within the diff must succeed, i.e: that each version number mentioned is still current. Otherwise the entire transaction *must* be rolled back. Furthermore, each element in the diff can only reference the current changeset. Returns: a diffResult document, as described in http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/controllers/changeset_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ChangesetController-upload-for-pr
# Commit to gitgit add app/controllers/changeset_controller.rbgit commit -m "better docs for ChangesetController#upload"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ChangesetController-upload-for-pr
hub pull-request
# Celebrate!