Skip to content

Commit

Permalink
README.md: add an example
Browse files Browse the repository at this point in the history
Signed-off-by: Trevor Gamblin <[email protected]>
  • Loading branch information
threexc committed Dec 6, 2024
1 parent d7de603 commit 9b59912
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ Then install with pip:
pip install .
```

## Examples

Test a patch (the sample file is generated using `git format-patch` on commit d7de60340ec9 in this repository):

```console
(venv) tgamblin@workbox:~/git/patchtest2$ patchtest --patch 0001-README.md-update-Installation-instructions.patch
PASS: test_mbox_signed_off_by_presence on [PATCH] README.md: update Installation instructions
PASS: test_mbox_shortlog_format on [PATCH] README.md: update Installation instructions
FAIL: test_mbox_commit_message_presence on [PATCH] README.md: update Installation instructions (Please include a commit message on your patch explaining the change)
```

## License

`patchtest2` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.

0 comments on commit 9b59912

Please sign in to comment.