947
edits
(→Overview: capitalization) |
(→Landing the patch: update syntax) |
||
Line 371: | Line 371: | ||
'''Please never use the Github auto-merge feature!''' | '''Please never use the Github auto-merge feature!''' | ||
To land the patch on the target branch | To land the patch on the target branch make use of the '''git merge --squash''' command, which will land the patch as a single commit. After running this command you will have to issue a new commit message before being able to push the changes. Make sure that you add the right author if the patch wasn't created by yourself. Also use the right commit message format as shown below which includes the bug number and the list of reviewers. | ||
Here an example how to land a patch from the '''feature''' branch onto '''master''': | Here an example how to land a patch from the '''feature''' branch onto '''master''': | ||
Line 377: | Line 377: | ||
* git checkout master | * git checkout master | ||
* git checkout -b feature | * git checkout -b feature | ||
* git pull remote feature | * git pull remote feature # or git am patch | ||
* '''TEST''' the patch by [https://wiki.mozilla.org/Auto-tools/Projects/MozBase#Running_the_tests running existent tests] | * '''TEST''' the patch by [https://wiki.mozilla.org/Auto-tools/Projects/MozBase#Running_the_tests running existent tests] | ||
* git merge --squash feature | * git merge --squash feature | ||
* git commit -m "Bug XYZ - Add new feature to MozBase | * git commit -a -m "Bug XYZ - Add new feature to MozBase;r=reviewer" --author="foo <foo@bar>" | ||
* git push | * git push git@github.com:mozilla/mozbase.git master | ||
=== Versioning === | === Versioning === |
edits