mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit 00e3bec96aaddfc605a8d275e4817decce85d857
parent ad7a07a9998dff14e9ff93001bd3ac5b2114f2d1
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Mon, 15 Mar 2021 21:08:05 -0700

Rename back to mygit

Diffstat:
MCargo.lock | 40++++++++++++++++++++--------------------
MCargo.toml | 2+-
MREADME.md | 4++--
Rgrifter.toml -> mygit.toml | 0
Msrc/main.rs | 4++--
Mtemplates/base.html | 2+-
6 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -864,26 +864,6 @@ dependencies = [ ] [[package]] -name = "grifter" -version = "0.1.0" -dependencies = [ - "anyhow", - "askama", - "askama_tide", - "async-std", - "chrono", - "git2", - "once_cell", - "percent-encoding", - "pico-args", - "pulldown-cmark", - "serde", - "syntect", - "tide", - "toml", -] - -[[package]] name = "hashbrown" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1137,6 +1117,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" [[package]] +name = "mygit" +version = "0.1.0" +dependencies = [ + "anyhow", + "askama", + "askama_tide", + "async-std", + "chrono", + "git2", + "once_cell", + "percent-encoding", + "pico-args", + "pulldown-cmark", + "serde", + "syntect", + "tide", + "toml", +] + +[[package]] name = "nb-connect" version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/Cargo.toml b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "grifter" +name = "mygit" version = "0.1.0" authors = ["alex wennerberg <alex@alexwennerberg.com>"] edition = "2018" diff --git a/README.md b/README.md @@ -1,4 +1,4 @@ -# grifter -- the world's smallest Git host +# mygit -- the world's smallest Git host A small, self-hosted git forge, with a web viewer for repositories and and a mailing list archive @@ -6,7 +6,7 @@ A small, self-hosted git forge, with a web viewer for repositories and and a mai Many people want to self-host Git in order to get rid of their reliance on GitHub or other institutions. However, the options for doing this are problematic in a number of ways. There are ancient CGI programs written in C or Perl like gitolite, cgit and webgit, and there are modern programs like gitea or gitlab that are essentially GitHub clones, with a lot of unnecessary complexity for many people's use cases. -I really like [stagit](https://codemadness.org/stagit.html), but it's a bit too austere for my use case and very "suckless" philosophy: e.g. doesn't support markdown READMEs. I also really like [sourcehut](https://git.sr.ht/) but it is pretty complex to self-host a single-user instance. A lot of the design of grifter is drawn from both these sources. +I really like [stagit](https://codemadness.org/stagit.html), but it's a bit too austere for my use case and very "suckless" philosophy: e.g. doesn't support markdown READMEs. I also really like [sourcehut](https://git.sr.ht/) but it is pretty complex to self-host a single-user instance. A lot of the design of mygit is drawn from both these sources. The simplest way to accept patches is through [git-send-email](https://git-scm.com/docs/git-send-email), so I also want to setup a mailing list archive. The simplest way to do this is via IMAP and the [public-inbox](https://public-inbox.org/README.html) model -- the mailing list does not send out messages but simply receives them. Users can use RSS/imap/web view to view the patches. This is step above the opacity of a personal email, but much, much easier to self-host than a full mailing list. diff --git a/grifter.toml b/mygit.toml diff --git a/src/main.rs b/src/main.rs @@ -18,7 +18,7 @@ pub struct Config { } const HELP: &str = "\ -grifter +mygit FLAGS: -h, --help Prints help information @@ -39,7 +39,7 @@ fn args() -> Config { } let toml_text = - fs::read_to_string("grifter.toml").expect("expected configuration file grifter.toml"); + fs::read_to_string("mygit.toml").expect("expected configuration file mygit.toml"); match toml::from_str(&toml_text) { Ok(config) => config, Err(e) => { diff --git a/templates/base.html b/templates/base.html @@ -15,7 +15,7 @@ </div> <hr class="thin"> <div class="footer"> - Server running <a href="git.alexwennerberg.com/grifter">grifter</a> + Server running <a href="git.alexwennerberg.com/mygit">mygit</a> </div> </body> </html>