1 个不稳定版本
0.1.0 | 2022年4月27日 |
---|
#1371 in 开发工具
9KB
200 代码行
branchify
用 Rust 编写的 Git 分支名称辅助工具。
用法
通过 stdin 传入一个用制表符分隔的工单编号和摘要,并接收一个功能分支名称。
# command
echo "FOO-123\tThis is a ticket" | branchify
#output
feature/FOO-123-this-is-a-ticket
指定分支类型
# command
echo "FOO-123\tThis is a ticket" | branchify -t hotfix
#output
hotfix/FOO-123-this-is-a-ticket
在分支类型前加上前缀
# command
echo "FOO-123\tThis is a ticket" | branchify -p adam
#output
adam/feature/FOO-123-this-is-a-ticket
分支名称也将被截断为 40 个字符
# command
echo "FOO-123\tThis ticket has a longer name"| branchify
#output
feature/FOO-123-this-ticket-has-a-longer
# command
git checkout -b $(jira issue list --plain --columns key, summary | fzf | branchify)
依赖
~2.1–3MB
~53K SLoC