Author Topic: Git support via libgit2 in CBVCS plugin  (Read 8119 times)

Offline christo

  • Multiple posting newcomer
  • *
  • Posts: 32
Git support via libgit2 in CBVCS plugin
« on: August 09, 2024, 06:13:40 pm »
Fork of CBVCS plugin which uses libgit2 for git operations is available at https://github.com/josephch/cbvcs

CBVCS plugin has nice integration with CB file manager. It shows different icons for different git state of the files and supports basic git operations like commit, add, revert ( does checkout internally).

In addition to libgit2 integration, this fork has following additional features
1. Doing operations on multiple selected files in file manager
2. menu item to view diff
3. menu item to refresh git status in the file manager.

Compared to other plugins like GitBlocks, I feel this plugin is more integrated into the Codeblocks architecture. Even though this does not support all the features, I find integration to filemanager and the diff feature quite useful as we can know the changes without switching to another application.

Tested in Ubuntu with libgit2 version 1.8.1 , wxWidget 3.2.4

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Git support via libgit2 in CBVCS plugin
« Reply #1 on: August 10, 2024, 03:13:09 am »
Very nice work! Hope some git plugin will added to our C::B code repo in the near future.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 55
Re: Git support via libgit2 in CBVCS plugin
« Reply #2 on: August 10, 2024, 05:38:28 am »
Git is the way to go as everyone has moved to and app & web site support for SVN had dropped allot in the last 5 to 10 years.