User forums > Using Code::Blocks

C::B plugin to show current git branch?

(1/2) > >>

cacb:
The question is in the subject. Does a C::B plugin exist to show current git branch somewhere in the IDE, for example in the task bar?

I sometimes make mistakes forgetting what the current branch is, so this would be useful to me.

stahta01:
I believe the GitBlocks does this it is a third-party plugin that I updated a year or two back.
But for what you want that is over kill. I would use the CB Toolplus plugin and likely use the "git branch --list" command to display the information.

Edit: Both of the above does it in a log tab instead of a place in the status toolbar.

Tim S.

cacb:
Thanks for the info., I will look into it.

It would be nice if it could be directed to a field in the status bar.

christo:
This is a useful feature, I'll try to add it to cbvcs plugin.

cacb:
It is very nice to add that feature to the cbvcs, thank you for considering it.

I could not find cbvcs among the standard plugins, but I found it at https://github.com/josephch/cbvcs

Trouble is, I use C::B a lot under windows and for that I rely on the Windows nightly builds (that I do not build myself) available via this forum. The nightly builds work perfectly fine, but there does not seem to be an easy way to install a plugin like cbvcs in this situation. Or maybe I am mistaken?

On Linux I do build C::B from source, so that is slightly different I suppose, but the main need is currently on Windows using C::B nightly builds.

Ideas welcome.

----
Edit: By the way, I currently "integrate" git with Code::Blocks in a super simplified way: I simply add a "Git Gui Here" option in the C::B Tools menu with ${PROJECT_DIR} as working directory. That way I have access to most most git features that I care about and it works the same on Windows and Linux. For special git features I can use another "Terminal here" option in the C::B Tools menu.

if I could use the Tools plugin (or Tools+ if you insist) to assign a string to some C::B variable to be mirrored in the taskbar it would work without the need for a whole new plugin.

Navigation

[0] Message Index

[#] Next page

Go to full version