Skip to contentSkip to conversation

Switching to git

Qemu-devel Anthony Liguori 11 participants 16 messages Apr 22, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

It's been mentioned in the past that we're planning a switch from subversion to git. I've setup a git repo on Savannah that is now mirroring the svn tree. I've got a hook setup such that commits generate emails. They're currently being sent to qemu-commits although I can redirect to qemu-devel if that's desired.

For users, to get the latest QEMU bits, you would do:

$ git clone git://git.savannah.nongnu.org/qemu.git

For maintainers, Savannah has a getting started page that describes how to push commits at http://savannah.gnu.org/maintenance/UsingGit

The git repository is compatible with the repositories on kernel.org and repo.or.cz. All of the tags have been replicated and there is a stable_0_10 branch.

I think it would make sense to give people a couple days to verify that they can download the git tree properly before switching over, but I'd like to tentatively schedule the switching of the git tree to Friday at 5pm CST unless there are objections. Until then, please continue committing to the SVN tree.

There is also a web interface available at http://git.savannah.gnu.org/cgit/qemu.git

Signature · 3 lines
Regards,

Anthony Liguori
#1 lore raw
Quoted 1 line · Anthony Liguori

It's been mentioned in the past that we're planning a switch from subversion to git. I've setup a git repo on Savannah that is now mirroring the svn tree. I've got a hook setup such that commits generate emails. They're currently being sent to qemu-commits although I can redirect to qemu-devel if that's desired.

Personally, I like having the commit messages on the list. But I can subscribe to another list as well, I could still filter it into the same folder.

Quoted 1 line

I think it would make sense to give people a couple days to verify that they can download the git tree properly before switching over

I switched already this morning and it seems to work just fine.

Kevin

#2 lore raw
Quoted 4 lines · Kevin Wolf
Quoted 1 line · Anthony Liguori

It's been mentioned in the past that we're planning a switch from subversion to git. I've setup a git repo on Savannah that is now mirroring the svn tree. I've got a hook setup such that commits generate emails. They're currently being sent to qemu-commits although I can redirect to qemu-devel if that's desired.

Personally, I like having the commit messages on the list. But I can subscribe to another list as well, I could still filter it into the same folder.

Once we do the switch and commits have proper author information, I plan on adding anyone on the SoB to the CC for these messages to give people an automatic indication of when their patch was committed.

My goal is to reduce some of the traffic on qemu-devel. For those that want to read commits, it's easy enough to filter appropriately like you've mentioned.

I'm open to suggestion though.

Signature · 3 lines
Regards,

Anthony Liguori
#3 lore raw
In reply to Anthony Liguori
Quoted 1 line · Anthony Liguori
$ git clone git://git.savannah.nongnu.org/qemu.git

Flipped the origin url from kernel.org to savannah, pulled.
git fetched most recent master commit and the stable branch.
Branches look ok. Had to do a "git fetch -t origin" to get all the tags too, without that I got release_0_10_0 only.

Quoted 5 lines

I think it would make sense to give people a couple days to verify that they can download the git tree properly before switching over, but I'd like to tentatively schedule the switching of the git tree to Friday at 5pm CST unless there are objections. Until then, please continue committing to the SVN tree.

Go ahead!

cheers,
Gerd

#4 lore raw
In reply to Anthony Liguori

On Wed, Apr 22, 2009 at 3:22 PM, Anthony Liguori <[email protected]> wrote:
[...]

Quoted 7 lines

For users, to get the latest QEMU bits, you would do:

$ git clone git://git.savannah.nongnu.org/qemu.git

For maintainers, Savannah has a getting started page that describes how to push commits at http://savannah.gnu.org/maintenance/UsingGit

And what for people between users and maintainers, for instance those who propose patches? Will there be some recommendations on how to post patches so that it works well? And don't forget that for some people just telling "a set of patches is good as long as it can be bisected" is too short :-)

Laurent

#5 lore raw
Quoted 12 lines · Laurent Desnogues

On Wed, Apr 22, 2009 at 3:22 PM, Anthony Liguori <[email protected]> wrote:
[...]

Quoted 8 lines

For users, to get the latest QEMU bits, you would do:

$ git clone git://git.savannah.nongnu.org/qemu.git

For maintainers, Savannah has a getting started page that describes how to push commits at http://savannah.gnu.org/maintenance/UsingGit

Quoted 6 lines

And what for people between users and maintainers, for instance those who propose patches? Will there be some recommendations on how to post patches so that it works well? And don't forget that for some people just telling "a set of patches is good as long as it can be bisected" is too short :-)

Yup, we'll have a SubmittingPatches that provides the recommended work flow. A really nice property of git is that if you use the various git tools to send patches (git-format-patch/git-send-email) then a maintainer can grab those automatically via git-am. It significantly reduces the likelihood of loosing information in the process.

Quoted 2 lines

Laurent

Signature · 3 lines
Regards,

Anthony Liguori
#6 lore raw
Quoted 2 lines · Anthony Liguori

Yup, we'll have a SubmittingPatches that provides the recommended work flow. A really nice property of git is that if you use the various git tools to send patches (git-format-patch/git-send-email) then a maintainer can grab those automatically via git-am. It significantly reduces the likelihood of loosing information in the process.

I'll miss those 'add files missing from previous commit' commits.

Signature · 1 line
error compiling committee.c: too many arguments to function
#11 lore raw
In reply to Laurent Desnogues
Quoted 5 lines · Laurent Desnogues

And what for people between users and maintainers, for instance those who propose patches? Will there be some recommendations on how to post patches so that it works well? And don't forget that for some people just telling "a set of patches is good as long as it can be bisected" is too short :-)

Commits that can be bisected is very appreciated. I have hit way too many commits in qemu that cause build failures, segfaults, etc, and just generally make bisecting a major pain.

The segfaults I can accept as things that happen (although not checking pointers is kind of sloppy coding, but may run slightly faster when it is not segfaulting). Code that doesn't build on the other hand should never have been checked in.

Signature · 1 line
Len Sorensen
#12 lore raw
Quoted 10 lines · Lennart Sorensen
Quoted 5 lines · Laurent Desnogues

And what for people between users and maintainers, for instance those who propose patches?  Will there be some recommendations on how to post patches so that it works well?  And don't forget that for some people just telling "a set of patches is good as long as it can be bisected" is too short :-)

Commits that can be bisected is very appreciated.  I have hit way too many commits in qemu that cause build failures, segfaults, etc, and just generally make bisecting a major pain.

I certainly wasn't arguing against bisectability :)

I just wanted to be sure how to achieve it would be described somewhere to help git newcomers. I used that as an example of what makes git not very user friendly, like inventing some new terminology or use new command names for things that have been used for years.

And before someone jumps on me, I am not arguing against git, I start to like it.

Laurent

#13 lore raw
Quoted 6 lines · Laurent Desnogues

I certainly wasn't arguing against bisectability :)

I just wanted to be sure how to achieve it would be described somewhere to help git newcomers. I used that as an example of what makes git not very user friendly, like inventing some new terminology or use new command names for things that have been used for years.

How does it make git not friendly? Commiting code that doesn't build has always caused people pain, it just happens that with git it includes the pain of loosing use of a major feature of git.

Quoted 2 lines

And before someone jumps on me, I am not arguing against git, I start to like it.

I like the regex saerches in commits using git log. Having git-svn to grab a svn tree and being able to do all the git tricks on it is very handy. A native git tree is much faster to fetch though.

Signature · 1 line
Len Sorensen
#15 lore raw
Quoted 5 lines · Johannes Schindelin

Hi,

On Wed, 22 Apr 2009, Anthony Liguori wrote:

Quoted 7 lines
Quoted 4 lines

For users, to get the latest QEMU bits, you would do:

$ git clone git://git.savannah.nongnu.org/qemu.git

I updated repo.or.cz.

Thanks!

Regards,

Anthony Liguori

Quoted 5 lines

Ciao,
Dscho

#7 lore raw
In reply to Anthony Liguori

Am 22.04.2009 um 16:22 schrieb Anthony Liguori:

Quoted 13 lines
Quoted 12 lines · Laurent Desnogues

On Wed, Apr 22, 2009 at 3:22 PM, Anthony Liguori <[email protected]> wrote:
[...]

Quoted 8 lines

For users, to get the latest QEMU bits, you would do:

$ git clone git://git.savannah.nongnu.org/qemu.git

For maintainers, Savannah has a getting started page that describes how to push commits at http://savannah.gnu.org/maintenance/UsingGit

Quoted 8 lines
Quoted 6 lines

And what for people between users and maintainers, for instance those who propose patches? Will there be some recommendations on how to post patches so that it works well? And don't forget that for some people just telling "a set of patches is good as long as it can be bisected" is too short :-)

Yup, we'll have a SubmittingPatches that provides the recommended work flow. A really nice property of git is that if you use the various git tools to send patches (git-format-patch/git-send-email) then a maintainer can grab those automatically via git-am. It significantly reduces the likelihood of loosing information in the process.

Unfortunately tools like git-send-email make me loose information instead, by not saving the sent patches in my mail client's or IMAP server's Sent Mail folder...

Andreas

#8 lore raw
Quoted 3 lines · Andreas Färber

Unfortunately tools like git-send-email make me loose information instead, by not saving the sent patches in my mail client's or IMAP server's Sent Mail folder...

This can be done. Looking briefly at git-send-email's man page, The --bcc= option (which can be put in a config file) could be used to send yourself copies on a special address ("[email protected]") which you store in your sent folder using a procmail filter or similar. That's the most versatile option
- it should work with any mail system which has filtering rules.

Or you could use the --smtp-server= option to send the mail via a script of your choice which stores a copy. I wouldn't be surprised if the script could just run "mutt -H" to send the mail in a usual way.

-- Jamie

#9 lore raw
In reply to Andreas Färber
Quoted 33 lines · Andreas F?rber

Am 22.04.2009 um 16:22 schrieb Anthony Liguori:

Quoted 23 lines
Quoted 14 lines · Laurent Desnogues

On Wed, Apr 22, 2009 at 3:22 PM, Anthony Liguori
<[email protected]> wrote:
[...]

Quoted 9 lines

For users, to get the latest QEMU bits, you would do:

$ git clone git://git.savannah.nongnu.org/qemu.git

For maintainers, Savannah has a getting started page that describes how to
push commits at http://savannah.gnu.org/maintenance/UsingGit

Quoted 7 lines

And what for people between users and maintainers, for instance those who propose patches? Will there be some recommendations on how to post patches so that it works well? And don't forget that for some
people just telling "a set of patches is good as long as it can be bisected" is too short :-)

Quoted 6 lines

Yup, we'll have a SubmittingPatches that provides the recommended work flow. A really nice property of git is that if you use the various git tools to send patches (git-format-patch/git-send-email) then a maintainer can grab those automatically via git-am. It significantly reduces the likelihood of loosing information in the process.

Quoted 3 lines

Unfortunately tools like git-send-email make me loose information instead, by not saving the sent patches in my mail client's or IMAP server's Sent Mail folder...

git-send-email sends you a copy of the patches sent.

Signature · 4 lines
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
[email protected]
#10 lore raw
In reply to Andreas Färber
Quoted 3 lines · Andreas Färber

Unfortunately tools like git-send-email make me loose information instead, by not saving the sent patches in my mail client's or IMAP server's Sent Mail folder...

git config --global sendemail.bcc <me>

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.