mirror of https://github.com/realaravinth/gitpad
SUMMARY This program supports directories in gists. This patch modifies Data::read_file to support directory reads. Additionally, CreateGistRequest is modified to accept files in subdirectories. DESCRIPTION Data::read_file When repository contains subdirectories, it will recursively read all files and return their contents. crate::data::api::v1::gists::GitFileMode Set of known(to me) file modes that Git uses. GitFileMode::Unsupported is used to take advantage of num_enum::FromPrimitive. The alternative would have been num_enum::TryFromPrimitive, which returns errors on unsupported values. I felt the former was cleaner. |
||
---|---|---|
.github | ||
config | ||
database | ||
docs | ||
src | ||
.env-sample | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE.md | ||
Makefile | ||
README.md | ||
build.rs | ||
sqlx-data.json |
README.md
Features
- Upload code snippets
- Syntax Highlighting
- Comments
- Versioning through Git
- Fork gists
- Gist privacy: public, unlisted, private
- Git clone via HTTP and SSH
- Activity Pub implementation for publishing native gists and commenting
- Gitea OAuth integration
Why?
Gists are nice, while there are wonderful forges like Gitea, there isn't a libre pastebin implementation that can rival GitHub Gists.
Usage
- All configuration is done through
./config/default.toml(can be moved to
/etc/gists/config.toml
).