Making a Patch: Difference between revisions
Jump to navigation
Jump to search
imported>Capitol →Linux: a brief description on how to create a patch in linux |
Add link to contributions guide. |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Attention|This page is outdated as of the move to Github in Sep 2021. Check out [https://github.com/kolmafia/kolmafia/blob/main/CONTRIBUTING.md our contributions guide] for the latest details.}} | |||
Once you have the source code for Mafia successfully downloaded as in the [[Compiling from Source]] page, you will then need to make a patch, as the dev's don't let just anyone update the program. Fortunately, this is very simple, and once you have the patch, post it on the KoLmafia Forums for acceptance. | Once you have the source code for Mafia successfully downloaded as in the [[Compiling from Source]] page, you will then need to make a patch, as the dev's don't let just anyone update the program. Fortunately, this is very simple, and once you have the patch, post it on the KoLmafia Forums for acceptance. | ||
Line 11: | Line 13: | ||
# post the file on the forums for review | # post the file on the forums for review | ||
== | ==MacOS Terminal== | ||
Use the Linux instructions | |||
==IntelliJ== | |||
There are a number of different ways to get to the Create Patch dialog. Use any method, including the steps below. | |||
# From the VCS Menu select "Create Patch from Local Changes". | |||
# In the Create Patch dialog, enter a short description in the "Commit Message" Text field. | |||
# Review your changes and make sure they include what you want to have in the patch file and nothing unexpected. | |||
# Select the "Apply Patch..." button. | |||
# Review the suggested patch name. | |||
# Select the "OK" button. | |||
The patch file in the location listed in the Save dialog can be uploaded to the forum. | |||
==Eclipse== | |||
[[Category:Tech Support]] | [[Category:Tech Support]] |
Latest revision as of 09:14, 25 September 2022
Attention KoLmafia Users!
This page is outdated as of the move to Github in Sep 2021. Check out our contributions guide for the latest details.
Once you have the source code for Mafia successfully downloaded as in the Compiling from Source page, you will then need to make a patch, as the dev's don't let just anyone update the program. Fortunately, this is very simple, and once you have the patch, post it on the KoLmafia Forums for acceptance.
Windows
- Right-click on the KoLmafia folder on your desktop (this assumes you are using Tortoise SVN), click on "TortoiseSVN" and then "Create Patch...".
- A new window then appears. Tick all the files you want to include in the patch (this is probably all of them), and click OK.
- Tortoise SVN then merges all your changes into a single .patch file, which you can then post on the forums.
Linux
- cd into the folder where you did your svn checkout
- run svn diff > /tmp/patchname.patch (a list of filenames can optionally be included after diff)
- post the file on the forums for review
MacOS Terminal
Use the Linux instructions
IntelliJ
There are a number of different ways to get to the Create Patch dialog. Use any method, including the steps below.
- From the VCS Menu select "Create Patch from Local Changes".
- In the Create Patch dialog, enter a short description in the "Commit Message" Text field.
- Review your changes and make sure they include what you want to have in the patch file and nothing unexpected.
- Select the "Apply Patch..." button.
- Review the suggested patch name.
- Select the "OK" button.
The patch file in the location listed in the Save dialog can be uploaded to the forum.