Git - Submitting a patch
This post is a quick example on how to submit an opennebula patch with Git. You can find a more complete example here on Gnome.
Setting up your Git environment
Let Git know you you are.
If you don’t specify the ‘–global’ parameter, this will apply only to this single checked-out directory. Save the export command in your shell environment’s configuration file.
Getting the source code
Look OpenNebula development page for more information.
This will checkout the master branch. If you want a specific branch you can extract one.
Edit some files. Be creative and customize the tool to suit your need!
Looking at the changes you made
Run ‘git diff’ to see which files where modified or added to the tree. You can focus on specific files.
Commiting your change in your local repository
Commiting the files will create a new checkpoint in the Git repository.
Generate the patch file
An editor will fire up. Enter a quick description of your changes, save and quit (:wq). Now send the resulting file to the maintainer of the code to share with the commmunity!
blog comments powered by Disqus