...
In order to create a patch, type:
Code Block |
---|
git diff --no-prefix HEAD^ > SENTRY-{JIRA#}.patch
|
...
- you may need to explicitly set MAVEN_HOME.
- you may need to explicitly set JAVA_HOME.
Running RAT checks
Before submitting your patch, please run RAT check to make sure all the files have the necessary license headers.
To do so, run:
Code Block |
---|
mvn verify -DskipTests
|
Applying a patch
To apply a patch either you generated or found from JIRA, you can issue
Code Block |
---|
patch -p0p1 < SENTRY-<JIRA#>.patch |
if you just want to check whether the patch applies you can run patch with --dry-run option
Code Block |
---|
patch -p0p1 --dry-run < SENTRY-<JIRA#>.patch |
...