A command line utility to wait until a remote git repository changes
Go to file
tarneo 00d430a52f
Change URL of git repo
2023-04-27 20:29:24 +02:00
src Remove exit() functions and use results in lib.rs 2023-04-26 17:36:39 +02:00
.gitignore Cargo init 2023-04-24 09:28:55 +02:00
Cargo.lock Remove exit() functions and use results in lib.rs 2023-04-26 17:36:39 +02:00
Cargo.toml Change URL of git repo 2023-04-27 20:29:24 +02:00
LICENSE Add LICENSE and Cargo.toml info 2023-04-24 10:16:19 +02:00
README.md Remove exit() functions and use results in lib.rs 2023-04-26 17:36:39 +02:00

README.md

MinCD

Wait until a remote git repository has been changed, and then exit. This is meant to be used in scripts, to replace a CD system. I am using it to deploy renn.es to my server using docker.

Installation

cargo install mincd

CLI Usage

Usage: mincd <url> <branch> [-i <interval>] [-p <local/path>]
  url: URL of the git repository
  branch: branch to watch (usually main or master)
  interval: interval in seconds to check for changes (default: 60)
  local/path: path to the local git repository
If the local path is specified, mincd will get the first commit hash from the local repository instead of the remote one.
This is useful if you have a local mirror of a remote repository and want to keep it up to date.

Example:

mincd https://github.com/tarneaux/.f master -i 60