1 个不稳定版本
0.1.0 | 2020年11月2日 |
---|
#10 在 #git2
每月 44 次下载
在 4 个 crate 中使用(通过 prs-lib)
6KB
68 行
git-state
一个简单的二进制文件和 Rust 库,用于探测 Git 仓库的状态。适用于 shell 提示。
此代码重新实现了 git2::git_repository_state
的纯 Rust 版本。此版本没有任何讨厌的编译或运行时 git2
依赖。Git 命令行接口不提供此功能。
状态
以下任何状态都可能返回
Clean
Merge
Revert
RevertSequence
CherryPick
CherryPickSequence
Bisect
Rebase
RebaseInteractive
RebaseMerge
ApplyMailbox
ApplyMailboxOrRebase
用法
命令行用法
cd my-repository/
git-state
# or
git-state my-repository/
许可协议
本项目采用 MIT 许可协议发布。有关更多信息,请参阅 LICENSE 文件。