Making Patches

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
TomMan71
Peon
Peon
Posts: 60
Joined: Thu Apr 09, 2009 8:55 am
Location: England

Making Patches

Post by TomMan71 » Tue Apr 06, 2010 1:48 pm

I am very interested in helping with this project but I have no idea on how to make patches with git. So, if someone could help me with doing this I would be very happy.
How should I know if it works? That's what beta testers are for. I only coded it.
-- Attributed to Linus Torvalds, somewhere in a posting
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Re: Making Patches

Post by Crush » Tue Apr 06, 2010 4:09 pm

Nice to read that you want to help.

I assume that you already have git installed, used it to clone the sourcecode repository and that you know how to use a command prompt on your operating system. When this assumption is wrong please say so and I will explain you the details.

1. git add <filename> to add the files you want to include in your patch to the index
2. git commit -m "Description of your changes" to create a commit with the changes you added
3. git format-patch to create a patch file with your commit
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
TomMan71
Peon
Peon
Posts: 60
Joined: Thu Apr 09, 2009 8:55 am
Location: England

Re: Making Patches

Post by TomMan71 » Tue Apr 06, 2010 4:24 pm

Thanks, that really helps! :D
How should I know if it works? That's what beta testers are for. I only coded it.
-- Attributed to Linus Torvalds, somewhere in a posting
Post Reply