Skip to content

Kalimero2Team/Mitochondrium

Repository files navigation

Mitochondrium

Includes Patches from:

Building

Applying Patches

./gradlew applyPatches

Build a Jar

./gradlew createMojmapBundlerJar

Modifying Patches

Source: Paper/CONTRIBUTING.md

This method works by temporarily resetting your HEAD to the desired commit to edit it using git rebase.

❗ While in the middle of an edit, you will not be able to compile unless you also reset the opposing module(s) to a related commit. In the API's case, you must reset the Server, and reset the API if you're editing the Server. Note also that either module may not compile when doing so. This is not ideal nor intentional, but it happens. Feel free to fix this in a PR to us!

  1. If you have changes you are working on, type git stash to store them for later;
    • You can type git stash pop to get them back at any point.
  2. Type git rebase -i base;
    • It should show something like this in the text editor you get.
    • If your editor does not have a "menu" at the bottom, you're using vim.
      If you don't know how to use vim and don't want to learn, enter :q! and press enter. Before redoing this step, do export EDITOR=nano for an easier editor to use.
  3. Replace pick with edit for the commit/patch you want to modify, and "save" the changes;
    • Only do this for one commit at a time.
  4. Make the changes you want to make to the patch;
  5. Type git add . to add your changes;
  6. Type git commit --amend to commit;
    • Make sure to add --amend or else a new patch will be created.
    • You can also modify the commit message and author here.
  7. Type git rebase --continue to finish rebasing;
  8. Type ./gradlew rebuildPatches in the root directory;
    • This will modify the appropriate patches based on your commits.
  9. PR your modified patch file(s) back to this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published