Crates.io | prf |
lib.rs | prf |
version | 0.1.0 |
source | src |
created_at | 2019-11-30 04:15:40.493244 |
updated_at | 2019-11-30 04:15:40.493244 |
description | Tool to fetch PR branch to local repository |
homepage | |
repository | https://github.com/k-nasa/prf |
max_upload_size | |
id | 185476 |
size | 63,791 |
I was troubled by fpr
or prf
but I decided to use 'prf' for ease of typing.
A tool for easily fetching submitted PR into a local repository For example, I tried to get a PR branch locally by typing the following command a while ago.
git fetch upstream pull / 503 / head: random_merge
However, two pieces of information are needed to execute this command. One is the PR number and the second is the branch name. It's a little cumbersome to check and enter this. So I made a tool that can get PR branch locally only with PR number.
Use it like this. Just enter the PR number.
prf 55
Also, by default it gets from origin, but you may want to change the remote. In that case, it is like this.
prf 55 upstream
Get them here
brew install k-nasa/tap/prf
cargo install prf
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
prf 0.1.0
k-nasa <htilcs1115@gmail.com>
Tool to fetch PR branch to local repository
USAGE:
prf [OPTIONS] <pr_no> [remote]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-o, --owner <owner> repository owner (By default it uses the local repository's remote url)
-r, --repository <repository> repository name (By default it uses the local repository's remote url)
ARGS:
<pr_no> pull request number fetching to local
<remote> [default: origin]