🏡 index : ~doyle/rgit.git

author Geert Stappers <stappers@stappers.it> 2023-08-24 22:00:04.0 +02:00:00
committer Geert Stappers <stappers@stappers.it> 2023-08-24 22:03:55.0 +02:00:00
commit
3d9c7d2ff68bffdac879e91a74aa0f34aa5ff71b [patch]
tree
1027edc53704ed7492a144d61f46a25f2a0f0003
parent
3ee96fb5bc8369dfcfec2b0d3f051cc69e8bd221
download
3d9c7d2ff68bffdac879e91a74aa0f34aa5ff71b.tar.gz

README.md ready for copy and paste

Made it possible the select the ```bash sections
and just copy and paste it by removing the leading $

The long docker command line split into two physical lines
to prevent horizontal scrolling.

Diff

 README.md | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 60dd342..617d86e 100644
--- a/README.md
+++ a/README.md
@@ -54,10 +54,10 @@
rgit can be installed from source by cloning, building using [`cargo`][] and running the binary:

```bash

$ git clone https://github.com/w4/rgit
$ cd rgit
$ cargo build --release
$ ./target/release/rgit [::]:3333 /path/to/my-repos -d /tmp/rgit-cache.db
git clone https://github.com/w4/rgit
cd rgit
cargo build --release
./target/release/rgit [::]:3333 /path/to/my-repos -d /tmp/rgit-cache.db
```


[`cargo`]: https://www.rust-lang.org/
@@ -102,5 +102,6 @@
Running rgit in Docker is also simple, just mount the directory containing your repositories to `/git`:

```bash

$ docker run --mount type=bind,source=/path/to/my-repos,target=/git -it ghcr.io/w4/rgit:main
docker run --mount type=bind,source=/path/to/my-repos,target=/git \
  -it ghcr.io/w4/rgit:main
```