
Le mardi 13 avril 2010 à 10:00 +0100, Daniel P. Berrange a écrit :
On Mon, Apr 12, 2010 at 11:23:54PM +0200, Daniel Berteaud wrote:
It isn't as hard as it might seem:-) For general reference, if anyone else is wondering about a easy way to make some quick fixes for libvirt in GIT, this is a 30 second overview avoiding all the hard bits of GIT...
Many thanks for this step-by-step guide, I'll try to use it next time a find something I can fixe. Regards, Daniel (hey, there's a lot of Daniels on this list :D)
0. Set your name & email in GIT if not already done
# git config --global user.name "Daniel Berrange" # git config --global user.email "berrange@redhat.com"
1. Get a local checkout
# git checkout git://libvirt.org/libvirt.git
2. Create a branch 'misc-fixes' (or whatever name you like) where you'll make your change(s)
# cd libvirt # git checkout -b misc-fixes
3. Make your changes...
emacs blah.c foo.c
4. Commit the changed files
git add blah.c foo.c git commit
5. Repeat steps 3 & 4 several times if desired to make a series of changes
6. Send us the change(s)...
a) Either format all changes on the branch as patches
git format-patch master..misc-fixes ...manually email the patch files created...
b) Or email the branch directly from git
git send-email -c libvir-list@redhat.com master..misc-fixes
Regards, Daniel
-- Daniel Berteaud FIREWALL-SERVICES SARL. Société de Services en Logiciels Libres Technopôle Montesquieu 33650 MARTILLAC Tel : 05 56 64 15 32 Fax : 05 56 64 15 32 Mail: daniel@firewall-services.com Web : http://www.firewall-services.com