Page 1 of 1

GIT plugin

Posted: Thu Feb 10, 2011 6:53 pm
by upCASE
Hi all!

As I do use GIT for all projects (be it private or work related) I felt the need to have a plugin for that in CodeLite.
Since I don't use svn frequently, I didn't base the plugin on the existing svn plugin, but created a new one.
As a result it is very different from the svn plugin, as it was more or less tailored for my own needs.

Eran mentioned that having a git plugin would be nice, so I decided to post here and discuss what I did.
Please see the attached screenshot.

- The major difference is that I used the Workspace tree to indicate file status: Green means "tracked file", red means
"tracked file with diffs" and black means "not tracked".
- To enable working with this plugin you simply create a new workspace and then use "Select GIT repository path" from the plugin menu.
Then you choose the root dir of the git repository and that's about it.
- All action is controlled either by using the plugin menu, or the toolbar.
- The current branch is indicated by changing the workspace view widgets title.

Some things are still missing (stashing e.g.) and others are a bit "buggy" (they work, but I would like to change them).
The code could need some polishing as well :-)
But so far it serves me and my colleagues quite well in everyday use.

Please tell me what you think.
Eran, David: If you're interested, I could PM you the sources to play with.

Regards,
upCASE

Re: GIT plugin

Posted: Thu Feb 10, 2011 7:53 pm
by speakman
This is definitely very interresting. Would you mind sharing the source code?

Thanks alot!

Re: GIT plugin

Posted: Sat Feb 12, 2011 12:03 am
by eranif
This is indeed very interesting, can you attach / PM the sources?
At first stage, I would like to "beutify" it and add it to the SVN repository (without modifications, just make sure that Win/Mac are built properly)

Thanks,
Eran

Re: GIT plugin

Posted: Wed Feb 16, 2011 11:09 pm
by V0idExp
Very nice! I started to use GIT recently, and find it very useful and powerful, and this plugin is clean and simple, but also complete. Continue to maintain it please, it rocks! ;)

Re: GIT plugin

Posted: Thu Feb 17, 2011 11:39 am
by upCASE
Thanks!
Since the plugin made it to svn, Eran is very busy updating the code and dialogs so that they can easily be modified.
I'm however glad that the initial version works as expected, not only for me, but others too.

There are still some issues with it. Currently I'm quite busy with other stuff, but I expect to be able to fix some things and update the code soon.
Anyway: Glad you like it!

Re: GIT plugin

Posted: Fri Feb 18, 2011 1:06 am
by V0idExp
It would be nice to have plugin panel buttons shown when Settings->Misc->Use Single Toolbar option is enabled. The menu is useful, but with toolbar buttons it would be easier to interact with plugin ;)

Re: GIT plugin

Posted: Fri Feb 18, 2011 11:17 am
by upCASE
Hi!
I think this won't work for any plugin toolbars.
I'm not sure, maybe Eran can comment on this, but I think that the single toolbar is fixed in layout.

Re: GIT plugin

Posted: Fri Feb 18, 2011 7:38 pm
by eranif
upCASE wrote:I'm not sure, maybe Eran can comment on this, but I think that the single toolbar is fixed in layout.
Indeed, it will only work for "core" toolbars. Not the ones from plugins

Eran