Author Topic: GitBlocks to keep most of it working under Windows 10  (Read 13772 times)

Online stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
GitBlocks to keep most of it working under Windows 10
« on: April 14, 2023, 03:07:56 pm »
https://github.com/stahta01/GitBlocks

It builds and show status menu option works. Most of the other options have at least been partly tested.

If no project is open than using this plugin currently crashes the CB IDE.

Tim S.
« Last Edit: April 15, 2023, 08:33:52 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: GitBlocks work to get it working under Windows 10
« Reply #1 on: April 15, 2023, 08:12:25 pm »
Several commands were fixed for crashing if no projects are open
Edit Fixed attach and release in git repo; not yet done a release.
Edit2: Did an release
.
Tim S.
« Last Edit: April 17, 2023, 02:07:41 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline christo

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: GitBlocks to keep most of it working under Windows 10
« Reply #2 on: September 15, 2023, 06:04:23 pm »
Hi Tim,

I tested the plugin in Linux wx3.0, it works fine. I've created pull request https://github.com/stahta01/GitBlocks/pull/1 with project file. Could you please check?

Thanks,
Christo

Online stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: GitBlocks to keep most of it working under Windows 10
« Reply #3 on: September 15, 2023, 09:28:09 pm »
Hi Tim,

I tested the plugin in Linux wx3.0, it works fine. I've created pull request https://github.com/stahta01/GitBlocks/pull/1 with project file. Could you please check?

Thanks,
Christo

This is the first time for me to process an PR; I think I did it right.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sodev

  • Lives here!
  • ****
  • Posts: 500
Re: GitBlocks to keep most of it working under Windows 10
« Reply #4 on: September 15, 2023, 09:49:11 pm »
Uhm, well... not really :P.

The history looks like you cherry-picked the commit, that was the worst option (does the GitHub UI even offer that option?). In general you perform a merge, for external contributions i prefer to always enforce a merge, even if like in this case a fast-forward merge would have been possible.

Also, it is kind of bad practice to create a PR from the main branch, in general you make a feature branch and create a PR from that one.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: GitBlocks to keep most of it working under Windows 10
« Reply #5 on: September 15, 2023, 11:18:49 pm »
Uhm, well... not really :P.

The history looks like you cherry-picked the commit, that was the worst option (does the GitHub UI even offer that option?). In general you perform a merge, for external contributions i prefer to always enforce a merge, even if like in this case a fast-forward merge would have been possible.

Also, it is kind of bad practice to create a PR from the main branch, in general you make a feature branch and create a PR from that one.

Thanks for the feedback; I will do it manually next time; I dislike git merges.

So, next time I will do a manual commit and see if it works better or it works worse.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: GitBlocks to keep most of it working under Windows 10
« Reply #6 on: December 25, 2023, 04:29:10 am »
BOT, where is the repo.