Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: katajakasa on June 07, 2012, 12:01:36 am

Title: Git plugin
Post by: katajakasa on June 07, 2012, 12:01:36 am
Hey guys!

It's been a while since CB was released and there still doesn't seem to be a working Git plugin. I finally got tired of waiting for one, so I thought I would slap one together ;)

I intend to use libgit2, which is still incomplete, so my plugin will not have any features that libgit2 doesn't have. I'm going to at least implement commit, init, clone, push and pull operations. I've got some testing code ready here: https://github.com/katajakasa/cbgp (https://github.com/katajakasa/cbgp). I'm not very experienced in codeblocks plugin development, git or wxwidgets, so this is probably going to take a while.

Oh, and the reason why i'm announcing this now instead of when it's done: if there is already a working git plugin or somebody is working on one, please tell me so i can go slack off ;)
Title: Re: Git plugin
Post by: Alpha on June 07, 2012, 01:56:26 am
[...]
if there is already a working git plugin or somebody is working on one
[...]
Look through the listing here (http://wiki.codeblocks.org/index.php?title=Announcement_for_plugins/patches).  It seems cbvcs (http://code.google.com/p/cbvcs/) is most similar, however, I think development of it and other like plugins has stalled - so you could probably pick one up, or start your own; whichever you have the most motivation for.
Title: Re: Git plugin
Post by: katajakasa on June 07, 2012, 02:44:13 am
It seems cbvcs (http://code.google.com/p/cbvcs/) is most similar, however, I think development of it and other like plugins has stalled - so you could probably pick one up, or start your own; whichever you have the most motivation for.

Thank you! I somehow missed that plugin completely. Seems very much like what i was thinking of doing, except a bit more ambitious + it uses git executable instead of library. I think i'll move forward with my own plugin, however -- sometimes it's more fun to reinvent the wheel (+ I don't like the idea of using external executables. Output parsing in C++ ... no thanks :P )-