Activity Team/Git FAQ: Difference between revisions
No edit summary |
|||
| Line 90: | Line 90: | ||
==Patches== | ==Patches== | ||
=== | === How do I generate a patch? === | ||
:git- | git diff > blah.patch | ||
:or | |||
diff -rup [old] [new] | |||
:or | |||
git format-patch HEAD^ | |||
It is preferable that you generate your patch from the root directory of your project. | |||
=== How do I send a patch to a maintainer? === | === How do I send a patch to a maintainer? === | ||
| Line 103: | Line 107: | ||
git send-email --to <maintainer> --cc <mailing-list> <filename> | git send-email --to <maintainer> --cc <mailing-list> <filename> | ||
You may need to install git-mail: | |||
sudo yum -y install git-email | |||
You can also generate a merge request on Gitorious from your forked repository to mainline. | |||
===How do I send a patch to the developers?=== | === How do I send a patch to the Sugar developers? === | ||
git send-email --to=sugar-devel@lists.sugarlabs.org 0001*.patch | git send-email --to=sugar-devel@lists.sugarlabs.org 0001*.patch | ||
=== As a maintainer, how do I merge a patch? === | |||
:git-pull does a combination of fetch and merge, so to merge a patch... | |||
git pull git://git.sugarlabs.org/myproject/myproject-clone.git master | |||
==Internationalization work flow== | ==Internationalization work flow== | ||