highlight-diffpatch/README.adoc

32 lines
1.1 KiB
Plaintext

= highlight-diffpatch
:showtitle:
:project: highlight-diffpatch
:uri-base: https://schlomp.space/tastytea/{project}
:uri-branch-main: {uri-base}/src/branch/main
:uri-license: {uri-branch-main}/LICENSE
:uri-man: {uri-branch-main}/man/{project}.1.adoc
*highlight-diffpatch* highlights diff-ed patches. It is licensed under the
link:{uri-license}[AGPL-3.0-only].
== Usage
[source,shell]
--------------------------------------------------------------------------------
git show --color=always HEAD | highlight-diffpatch
git config --global core.pager "diff-highlight | highlight-diffpatch | less --tabs=4 -RFX"
--------------------------------------------------------------------------------
image::https://schlomp.space/tastytea/highlight-diffpatch/raw/branch/main/screenshot.webp[Screenshot]
== Install
[source,shell]
--------------------------------------------------------------------------------
cmake -S . -B build
cmake --build build --parallel
sudo cmake --install build
--------------------------------------------------------------------------------
include::{uri-base}/raw/branch/main/CONTRIBUTING.adoc[]