Crates.io | fork-manager |
lib.rs | fork-manager |
version | 0.4.1 |
source | src |
created_at | 2024-08-27 15:00:34.117461 |
updated_at | 2024-09-09 13:28:17.147609 |
description | Automatize your fork |
homepage | |
repository | https://github.com/nim65s/fork-manager |
max_upload_size | |
id | 1353483 |
size | 102,544 |
Automatize your fork
config: # optional, just displayed in generated README
repo: git@github.com:gepetto/forks
branch: master # default branch from that repo if not specified
forks:
- name: gepetto-nixpkgs-master
target:
repo: git@github.com:gepetto/nixpkgs
branch: master
upstream:
repo: git@github.com:NixOS/nixpkgs
branch: master # Same as target branch if not specified
changes:
- title: Package HPP # default to branch name if not specified
repo: git@github.com:nim65s/nixpkgs
branch: hpp
- pr: 331343 # get title + repo + branch from upstream github PR
- name: gepetto-nixpkgs-devel
target:
repo: git@github.com:gepetto/nixpkgs
branch: devel
upstream:
repo: git@github.com:gepetto/nixpkgs
branch: master
changes:
- title: prepare hpp-fcl renaming to coal
repo: git@github.com:nim65s/nixpkgs
branch: coal
This configure the gepetto/forks github project, which manage the gepetto-nixpkgs-master
and gepetto-nixpkgs-devel
forks:
It will generate a ./update.sh
script which will work in one submodule per fork, and whose actual push is gated with a push
flag.
If a file named test-{fork}.sh
exists, it will be run.
$ fork-manager -h
Automatize your fork
Usage: fork-manager [OPTIONS]
Options:
-c, --config-file <CONFIG_FILE> Path to the configuration file. If not given, or not a file, this will be
searched according to arguments "project" and "filename"
[env: FORK_MANAGER_CONFIG_FILE=] [default: ./fork-manager.yaml]
-f, --filename <FILENAME> Name of the configuration file to look for
[env: FORK_MANAGER_CONFIG_FILENAME=] [default: fork-manager.yaml]
-p, --project <PROJECT> Path to the project where to look for
[env: FORK_MANAGER_PROJECT=] [default: .]
-u, --update-script <UPDATE_SCRIPT> Name of the script to generate
[env: FORK_MANAGER_UPDATE_SCRIPT=] [default: update.sh]
--generate <GENERATOR> If provided, outputs the completion file for given shell and exit
[possible values: bash, elvish, fish, powershell, zsh]
-d, --dry-run Only check config, don't run git commands
-h, --help Print help
-V, --version Print version