Creating a new branch.

For code related discussions and questions

Creating a new branch.

Postby jh0242 » 05 Dec 2013, 23:34

Hello everyone! I have been working with the Warzone 2100 source code via Github for a few months now, by myself, and I was wondering if I am able to create a new branch for the modifications that I have made without affecting the Master branch? I have implemented a difficulty adjustment option in the game options screen that when turned on modifies the AI damage based on the player performance in order to reduce or increase the difficulty. This does not replace any of the original game difficulties, it is just an option that will increase damage of AI units and nothing else at this time. I plan on further development and testing, but I feel as though using a repository would be a good idea. Any information is greatly appreciated, thank you.
jh0242
Rookie
Rookie
 
Posts: 18
Joined: 18 Apr 2013, 15:41

Re: Creating a new branch.

Postby Per » 05 Dec 2013, 23:37

https://github.com/Warzone2100/warzone2100/

Click 'fork'. Now you have your own repository, and you can create as many branches as you want. Once you have code you want to merge back into mainline, you either create a merge request or a bug ticket with a patch. Happy coding!
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
 
Posts: 3745
Joined: 03 Aug 2006, 19:39

Re: Creating a new branch.

Postby jh0242 » 05 Dec 2013, 23:48

Thank you very much for the quick and informative reply! Happy coding to you as well!
jh0242
Rookie
Rookie
 
Posts: 18
Joined: 18 Apr 2013, 15:41


Return to Coding