用于命名哈希的cli和python包

git-name的Python项目详细描述


git名称

一个git扩展和python包,用于将哈希转换为可记住的名称

安装

来自pypi

{cd1}

或者从github master

pip install git+https://github.com/CircArgs/git-name.git

使用

贝壳

CircArgs $ git name -h
usage: git name [-h][-f][-l LENGTH] word_or_hash

convert hashes to memorable names

positional arguments:
  word_or_hash

optional arguments:
  -h, --help            show this help message and exit
  -f, --from            `from hash` flag used to denote argument is a hash.
  -l LENGTH, --length LENGTH
                        `hash length`(default=7) truncate the input output hash to this length

CircArgs $ git name efa8f31
ten occupied nuts

CircArgs $ git name -f "ten occupied nuts"
efa8f31

CircArgs $ git name -f "five fat frogs"
a42cd68

# use names with git instead of hashes
CircArgs $ git checkout $(git name -f "five fat frogs")

Python

^{pr2}$

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
尝试连接到Red5服务器时出现java问题   java实现Runnable的类被认为是ExecutorServices的“Runnable任务”?   java struts2类中的多个@validation   java未能应用插件[class'org.gradle.api.plugins.scala.ScalaBasePlugin']:gradle v2。13   如何使用Java流仅收集长度最大的元素?   从spring引导应用程序连接到firestore的java引发空指针异常   java从SQLite插入和获取真实数据类型会为连续插入获取空值吗?   当存在未知数量的空格时,使用java替代正向查找   部署如何为当今的浏览器部署java小程序(小程序、嵌入、对象)?   @OneToMany和@ManyToOne@Formula之间的java双向关系返回null   java为什么在我的例子中,协议缓冲区的性能比JSON差?   如何部署混合C++/Java(JNI)应用程序?   java如何在程序中显示字符串的完整信息。反恐精英?   java在Hibernate中从持久性上下文中分离实体中的实体