You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.4 KiB

  1. Submitting patches to the OpenOCD mailing list:
  2. By the time you have read this, one supposes that
  3. you have figured out how to clone the OpenOCD git
  4. repository.
  5. Below is a basic workflow and specific instructions
  6. to get you going with git and patches.
  7. 0. Clone the git repository, rather than just
  8. download the source.
  9. git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd
  10. or if you have problems with the "git:" protocol, use
  11. the slower http protocol:
  12. git clone http://repo.or.cz/r/openocd.git
  13. 1. Set up git with your name and email:
  14. git config --global user.name "John Smith"
  15. git config --global user.email "john@smith.org"
  16. 2. Work on your patches. Split the work into
  17. multiple small patches that can be reviewed and
  18. applied seperately and safely to the OpenOCD
  19. repository.
  20. while(!done) {
  21. work - edit files using your favorite editor.
  22. run "git commit -a" to commit all changes.
  23. }
  24. TIP! use "git add ." before commit to add new files.
  25. --- example comment, notice the short first line w/topic ---
  26. topic: short comment
  27. <blank line>
  28. longer comments over several
  29. lines...
  30. -----
  31. 3. Next you need to make sure that your patches
  32. are on top of the latest stuff on the server and
  33. that there are no conflicts.
  34. git pull --rebase
  35. 4. Generate the patch files. This will generate
  36. patches for all commits that are on top of
  37. the latest stuff on the server:
  38. git format-patch origin/master
  39. 5. Email the patches to openocd-development@lists.berlios.de